mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix some issues with merging caused by incorrect boolean expressions
This commit is contained in:
@@ -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 = @"
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user