mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix RombaSharp build
This commit is contained in:
@@ -47,13 +47,13 @@ in -old DAT file. Ignores those entries in -old that are not in -new.";
|
|||||||
outdat = outdat.Ensure(create: true);
|
outdat = outdat.Ensure(create: true);
|
||||||
|
|
||||||
// Check that all required files exist
|
// Check that all required files exist
|
||||||
if (!File.Exists(olddat))
|
if (olddat == null || !File.Exists(olddat))
|
||||||
{
|
{
|
||||||
logger.Error($"File '{olddat}' does not exist!");
|
logger.Error($"File '{olddat}' does not exist!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!File.Exists(newdat))
|
if (newdat == null || !File.Exists(newdat))
|
||||||
{
|
{
|
||||||
logger.Error($"File '{newdat}' does not exist!");
|
logger.Error($"File '{newdat}' does not exist!");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace RombaSharp.Features
|
|||||||
outdat = outdat.Ensure(create: true);
|
outdat = outdat.Ensure(create: true);
|
||||||
|
|
||||||
// Check that all required directories exist
|
// Check that all required directories exist
|
||||||
if (!Directory.Exists(source))
|
if (source == null || !Directory.Exists(source))
|
||||||
{
|
{
|
||||||
logger.Error($"File '{source}' does not exist!");
|
logger.Error($"File '{source}' does not exist!");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user