mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
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:
@@ -184,6 +184,7 @@ namespace SabreTools
|
|||||||
bool srcmerged = (_sources == "" || _sources.Split(',').Length > 1);
|
bool srcmerged = (_sources == "" || _sources.Split(',').Length > 1);
|
||||||
bool merged = sysmerged || srcmerged;
|
bool merged = sysmerged || srcmerged;
|
||||||
|
|
||||||
|
// BEGIN COMMENT
|
||||||
string query = @"
|
string query = @"
|
||||||
SELECT DISTINCT systems.manufacturer AS manufacturer, systems.system AS system, systems.id AS systemid,
|
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,
|
sources.name AS source, sources.url AS url, sources.id AS sourceid,
|
||||||
@@ -261,9 +262,10 @@ JOIN checksums
|
|||||||
roms = RomManipulation.Merge(roms, true);
|
roms = RomManipulation.Merge(roms, true);
|
||||||
RomManipulation.Sort(roms, _norename);
|
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 = @"
|
string query = @"
|
||||||
SELECT hash.id AS id, hash.size AS size, hash.crc AS crc, hash.md5 AS md5, hash.sha1 AS sha1,
|
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,
|
hashdata.key AS key, hashdata.value AS value,
|
||||||
|
|||||||
@@ -410,6 +410,7 @@ namespace SabreTools
|
|||||||
dbc.Open();
|
dbc.Open();
|
||||||
foreach (RomData rom in roms)
|
foreach (RomData rom in roms)
|
||||||
{
|
{
|
||||||
|
// BEGIN COMMENT
|
||||||
// If we have a new game, check for a new ID
|
// If we have a new game, check for a new ID
|
||||||
if (rom.Game != lastgame)
|
if (rom.Game != lastgame)
|
||||||
{
|
{
|
||||||
@@ -419,6 +420,7 @@ namespace SabreTools
|
|||||||
|
|
||||||
// Try to add the rom with the game information
|
// Try to add the rom with the game information
|
||||||
AddRom(rom, gameid, date, dbc);
|
AddRom(rom, gameid, date, dbc);
|
||||||
|
// END COMMENT
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// Try to add the romdata
|
// Try to add the romdata
|
||||||
|
|||||||
Reference in New Issue
Block a user