mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add ability to disable renaming of sets
This commit is contained in:
@@ -13,6 +13,7 @@ namespace DATabase
|
|||||||
private int _system;
|
private int _system;
|
||||||
private int _source;
|
private int _source;
|
||||||
private string _connectionString;
|
private string _connectionString;
|
||||||
|
private bool _norename;
|
||||||
private bool _old;
|
private bool _old;
|
||||||
|
|
||||||
// Private required variables
|
// Private required variables
|
||||||
@@ -28,11 +29,12 @@ namespace DATabase
|
|||||||
get { return _source; }
|
get { return _source; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public Generate(int system, int source, string connectionString, bool old = false)
|
public Generate(int system, int source, string connectionString, bool norename = false, bool old = false)
|
||||||
{
|
{
|
||||||
_system = system;
|
_system = system;
|
||||||
_source = source;
|
_source = source;
|
||||||
_connectionString = connectionString;
|
_connectionString = connectionString;
|
||||||
|
_norename = norename;
|
||||||
_old = old;
|
_old = old;
|
||||||
|
|
||||||
_headers = new Dictionary<int, string>();
|
_headers = new Dictionary<int, string>();
|
||||||
@@ -313,10 +315,13 @@ JOIN checksums
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rename the game associated if it's still valid
|
// Rename the game associated if it's still valid and we allow renames
|
||||||
temp.Game = temp.Game +
|
if (!_norename)
|
||||||
(sysmerged ? " [" + temp.Manufacturer + " - " + temp.System + "]" : "") +
|
{
|
||||||
(srcmerged ? " [" + temp.Source + "]" : "");
|
temp.Game = temp.Game +
|
||||||
|
(sysmerged ? " [" + temp.Manufacturer + " - " + temp.System + "]" : "") +
|
||||||
|
(srcmerged ? " [" + temp.Source + "]" : "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
roms.Add(temp);
|
roms.Add(temp);
|
||||||
|
|||||||
Reference in New Issue
Block a user