Make some renaming-specific changes

This commit is contained in:
Matt Nadareski
2016-03-24 13:27:57 -07:00
parent 7bc7749c32
commit a30ebed20c
2 changed files with 10 additions and 4 deletions

View File

@@ -343,9 +343,9 @@ JOIN checksums
}
return String.Compare(x.Game, y.Game);
}
return x.SourceID - y.SourceID;
return (_norename ? String.Compare(x.Game, y.Game) : x.SourceID - y.SourceID);
}
return x.SystemID - y.SystemID;
return (_norename ? String.Compare(x.Game, y.Game) : x.SystemID - y.SystemID);
});
// Now check rename within games

View File

@@ -87,8 +87,14 @@ namespace DATabase
{
int sysid = -1, srcid = -1;
Int32.TryParse(system, out sysid);
Int32.TryParse(source, out srcid);
if (system != "")
{
Int32.TryParse(system, out sysid);
}
if (source != "")
{
Int32.TryParse(source, out srcid);
}
Generate gen = new Generate(sysid, srcid, _connectionString, norename, old);
gen.Export();