mirror of
https://git.triforceproject.com/triforce/source
synced 2026-12-01 05:18:50 -04:00
Triforce v0.9.0
Character tab, faster renderer defaults, HD rumble shipped, and the 11-30 bug pass: ending softlock below 60 fps, adult first-night lock, Intel Arc robust buffers, adult map, randomizer load order.
This commit is contained in:
@@ -55,6 +55,13 @@ public sealed partial class Backend
|
||||
OnAsync("retry", _ => retry != null ? retry() : Task.CompletedTask);
|
||||
On("workback", _ => { StopWork(); Go(workKind == "update" ? "home" : "reveal"); });
|
||||
On("play", _ => Play());
|
||||
// ((Triforce, 11-30) Play's question when the mods' code patches wait for a build: PlayOne)
|
||||
On("play.mods", m =>
|
||||
{
|
||||
var id = (string?)m["id"];
|
||||
if (id == "build") StartRebuild();
|
||||
else if (id == "anyway") { playModsAnyway = true; Play(); }
|
||||
});
|
||||
On("playold", _ => Play());
|
||||
On("showgame", _ => ShowGame());
|
||||
OnAsync("update", _ => UpdateNow(start.Args.UpdateFolder));
|
||||
@@ -86,7 +93,7 @@ public sealed partial class Backend
|
||||
// (only a language the game has: the code goes to the registry or builder.ini, which other programs read)
|
||||
On("lang", m => { if (Languages.Find((string?)m["id"]) is { } l) { ctx.Settings.Language = l.Code; SendReveal(); } });
|
||||
On("dlssanswer", m => { if ((string?)m["id"] == "yes" && Answered(ref dlssKey, m)) new Dlss(ctx).Accept(); SendReveal(); });
|
||||
On("screen", _ => { });
|
||||
On("screen", m => { pageScreen = (string?)m["s"]; });
|
||||
On("open", m => OpenThing((string?)m["arg"] ?? ""));
|
||||
On("report", _ => Copy(Report.ForBuild(ctx, lastResult, runner?.Details ?? "", new Tools(ctx).InstalledVersion, lastFailure)));
|
||||
On("sound", m =>
|
||||
@@ -636,6 +643,7 @@ public sealed partial class Backend
|
||||
}
|
||||
|
||||
// ---------------- Play ----------------
|
||||
bool playModsAnyway; // ((Triforce, 11-30) "Play anyway" once this session: Play does not ask about the mods' build again
|
||||
void Play()
|
||||
{
|
||||
// ((Triforce, 11-26) one start at a time: two clicks on Play started two games before the first was seen running)
|
||||
@@ -651,6 +659,18 @@ public sealed partial class Backend
|
||||
if (Volatile.Read(ref workBusy) != 0) { Go("work"); return; } // (a build or an update is writing the game folder)
|
||||
var game = new Game(ctx);
|
||||
if (game.IsRunning(g)) { Go("playing"); ShowGame(); return; }
|
||||
// ((Triforce, 11-30) #bug-tracker: crashes at the start or the first load (guest 0x1, 0x10 writes) whose logs say "mods: N code
|
||||
// patches wait for a build": a mod with code patches was added, removed or switched since the game was built, so its game files
|
||||
// and the code built in no longer match. The Mods page said so; Play did not. Asked once a session: Build now, or Play anyway)
|
||||
if (!playModsAnyway && SafeNeedsRebuild(g))
|
||||
{
|
||||
Ask("Your mods need a build",
|
||||
"<p>A mod with code patches was added, removed or switched on or off since the game was built. Until the game is built " +
|
||||
"again its code and that mod's files don't match, and the game can crash at the start or when a save loads.</p>" +
|
||||
"<p>Building again takes <b>" + H(RebuildTime()) + "</b>. Your saves and mods stay.</p>",
|
||||
"play.mods", new[] { ("anyway", "Play anyway", false), ("build", "Build now", true) });
|
||||
return;
|
||||
}
|
||||
gameProc = game.Play(g);
|
||||
if (gameProc == null) { Toast("The game would not start. Settings, Build the game again, repairs a broken game folder.", "error"); return; }
|
||||
Log.Write("play " + g);
|
||||
@@ -708,6 +728,7 @@ public sealed partial class Backend
|
||||
{
|
||||
"help" => BuildInfo.Home,
|
||||
"changes" => release?.PageUrl ?? BuildInfo.Home,
|
||||
"linkle" => Linkle.Page,
|
||||
_ => what.StartsWith("https://", StringComparison.Ordinal) ? what : null,
|
||||
};
|
||||
// (through OpenLink: https only, whatever the release feed or the page says; a test run opens nothing)
|
||||
|
||||
Reference in New Issue
Block a user