mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[RomManipulation] Debug statement fun
This commit is contained in:
@@ -1389,18 +1389,21 @@ namespace SabreTools.Helper
|
|||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
if ((rom.Size == lastrom.Size) &&
|
if ((rom.Size == lastrom.Size) &&
|
||||||
((String.IsNullOrEmpty(rom.CRC) || String.IsNullOrEmpty(lastrom.CRC)) || rom.CRC == lastrom.CRC) &&
|
(!String.IsNullOrEmpty(rom.CRC) && !String.IsNullOrEmpty(lastrom.CRC) && rom.CRC == lastrom.CRC) &&
|
||||||
((String.IsNullOrEmpty(rom.MD5) || String.IsNullOrEmpty(lastrom.MD5)) || rom.MD5 != lastrom.MD5) &&
|
(!String.IsNullOrEmpty(rom.MD5) && !String.IsNullOrEmpty(lastrom.MD5) && rom.MD5 != lastrom.MD5) &&
|
||||||
((String.IsNullOrEmpty(rom.SHA1) || String.IsNullOrEmpty(lastrom.SHA1)) || rom.SHA1 == lastrom.SHA1))
|
(!String.IsNullOrEmpty(rom.SHA1) && !String.IsNullOrEmpty(lastrom.SHA1) && rom.SHA1 == lastrom.SHA1))
|
||||||
{
|
{
|
||||||
logger.User("md5diff - MD5 source: " + lastrom.MD5 + ", MD5 new: " + rom.MD5);
|
logger.User("md5diff - MD5 source: " + lastrom.MD5 + " MD5 new: " + rom.MD5);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If it's a duplicate, skip adding it to the output but add any missing information
|
// If it's a duplicate, skip adding it to the output but add any missing information
|
||||||
if (dupefound)
|
if (dupefound)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
// DEBUG
|
||||||
logger.Log("Rom information of found duplicate:\n\tGame: " + rom.Game + "\n\tRom Name:" + rom.Name +
|
logger.Log("Rom information of found duplicate:\n\tGame: " + rom.Game + "\n\tRom Name:" + rom.Name +
|
||||||
"\n\tSize: " + rom.Size + "\n\tCRC:" + rom.CRC + "\n\tMD5:" + rom.MD5 + "\n\tSHA-1:" + rom.SHA1);
|
"\n\tSize: " + rom.Size + "\n\tCRC:" + rom.CRC + "\n\tMD5:" + rom.MD5 + "\n\tSHA-1:" + rom.SHA1);
|
||||||
|
*/
|
||||||
|
|
||||||
savedrom = lastrom;
|
savedrom = lastrom;
|
||||||
pos = i;
|
pos = i;
|
||||||
|
|||||||
Reference in New Issue
Block a user