[DatFile] Cut rebuild short if there's no inverse and no entries

This commit is contained in:
Matt Nadareski
2016-10-26 17:16:13 -07:00
parent e5a3289f11
commit 8e484e0fc2

View File

@@ -4296,7 +4296,14 @@ namespace SabreTools.Helper.Dats
{
#region Perform setup
// First, check that the output directory exists
// If the DAT is not populated and inverse is not set, inform the user and quit
if ((Files == null || Files.Count == 0) && !inverse)
{
logger.User("No entries were found to rebuild, exiting...");
return false;
}
// Check that the output directory exists
if (!Directory.Exists(outDir))
{
Directory.CreateDirectory(outDir);