Triforce v0.3.7

Setup's Convert saves page finds NX2navi saves by itself. Nothing else changed since v0.3.6's main.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-14 22:39:28 -06:00
parent 40aa5f5595
commit 23a743a977
4 changed files with 96 additions and 8 deletions

View File

@@ -80,6 +80,22 @@ static class Program
Log("convert-saves " + args[cv + 1] + " -> " + args[cv + 2] + ", backup " + (b ?? "none"));
return 0;
}
// (testing: --find-saves writes every save of the game the Convert saves page would list to setup.log; --find-saves <folder>
// the save Choose a folder would take from that folder)
var fs = Array.IndexOf(args, "--find-saves");
if (fs >= 0)
{
if (fs + 1 < args.Length && !args[fs + 1].StartsWith("--"))
{
var set = Saves.FindIn(args[fs + 1]);
Log("find-saves " + args[fs + 1] + ": " + (set ?? "none"));
return set != null ? 0 : 1;
}
var sets = Saves.FindEmulatorSaves();
foreach (var set in sets) Log("find-saves: " + set.Name + ", " + set.Slots + " slot(s), " + set.Folder);
Log("find-saves: " + sets.Count + " found");
return 0;
}
// (testing: --check-game <.nup | exefs folder> writes the version check's answer to setup.log)
var cg = Array.IndexOf(args, "--check-game");
if (cg >= 0 && cg + 1 < args.Length)