mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make some renaming-specific changes
This commit is contained in:
@@ -343,9 +343,9 @@ JOIN checksums
|
|||||||
}
|
}
|
||||||
return String.Compare(x.Game, y.Game);
|
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
|
// Now check rename within games
|
||||||
|
|||||||
@@ -87,8 +87,14 @@ namespace DATabase
|
|||||||
{
|
{
|
||||||
int sysid = -1, srcid = -1;
|
int sysid = -1, srcid = -1;
|
||||||
|
|
||||||
Int32.TryParse(system, out sysid);
|
if (system != "")
|
||||||
Int32.TryParse(source, out srcid);
|
{
|
||||||
|
Int32.TryParse(system, out sysid);
|
||||||
|
}
|
||||||
|
if (source != "")
|
||||||
|
{
|
||||||
|
Int32.TryParse(source, out srcid);
|
||||||
|
}
|
||||||
|
|
||||||
Generate gen = new Generate(sysid, srcid, _connectionString, norename, old);
|
Generate gen = new Generate(sysid, srcid, _connectionString, norename, old);
|
||||||
gen.Export();
|
gen.Export();
|
||||||
|
|||||||
Reference in New Issue
Block a user