mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Cut rebuild short if there's no inverse and no entries
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user