Add markers for testing

These added markers show which code needs to be commented out for the new code to work properly.
This commit is contained in:
Matt Nadareski
2016-04-22 11:08:02 -07:00
parent 5b62486009
commit f7727ae4c6
2 changed files with 5 additions and 1 deletions

View File

@@ -184,6 +184,7 @@ namespace SabreTools
bool srcmerged = (_sources == "" || _sources.Split(',').Length > 1);
bool merged = sysmerged || srcmerged;
// BEGIN COMMENT
string query = @"
SELECT DISTINCT systems.manufacturer AS manufacturer, systems.system AS system, systems.id AS systemid,
sources.name AS source, sources.url AS url, sources.id AS sourceid,
@@ -261,9 +262,10 @@ JOIN checksums
roms = RomManipulation.Merge(roms, true);
RomManipulation.Sort(roms, _norename);
}
// END COMMENT
/*
// This block would replace the whole block above from 'string query' on to 'if (merged)'
// This block would replace the whole block above between BEGIN COMMENT and END COMMENT
string query = @"
SELECT hash.id AS id, hash.size AS size, hash.crc AS crc, hash.md5 AS md5, hash.sha1 AS sha1,
hashdata.key AS key, hashdata.value AS value,

View File

@@ -410,6 +410,7 @@ namespace SabreTools
dbc.Open();
foreach (RomData rom in roms)
{
// BEGIN COMMENT
// If we have a new game, check for a new ID
if (rom.Game != lastgame)
{
@@ -419,6 +420,7 @@ namespace SabreTools
// Try to add the rom with the game information
AddRom(rom, gameid, date, dbc);
// END COMMENT
/*
// Try to add the romdata