Fix some issues with merging caused by incorrect boolean expressions

This commit is contained in:
Matt Nadareski
2016-03-24 20:56:04 -07:00
parent 817262e113
commit eec433aad9
2 changed files with 3 additions and 3 deletions

View File

@@ -250,8 +250,8 @@ namespace DATabase
List<RomData> roms = new List<RomData>();
// Check if we have listed sources or systems
bool sysmerged = (_systems != "" && _systems.Split(',').Length > 1);
bool srcmerged = (_sources != "" && _sources.Split(',').Length > 1);
bool sysmerged = (_systems == "" || _systems.Split(',').Length > 1);
bool srcmerged = (_sources == "" || _sources.Split(',').Length > 1);
bool merged = sysmerged || srcmerged;
string query = @"

View File

@@ -28,7 +28,7 @@ namespace DATabase
// Determine which switches are enabled (with values if necessary)
bool help = false, import = false, generate = false, convert = false,
listsys = false, listsrc = false, norename = false, old = false; ;
listsys = false, listsrc = false, norename = false, old = false;
string systems = "", sources = "", input = "";
foreach (string arg in args)
{