mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -04:00
Triforce v0.8.5
A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
@@ -37,6 +37,10 @@ public sealed class LinuxPlatform : PlatformBase
|
||||
Path.Combine(TestRoot == null && Env("HOOKSHOT_BUILDER_HOME") is { Length: > 0 } b ? b : DataHome, "triforce", "builder");
|
||||
|
||||
public override string WorkFolder => Path.Combine(CacheHome, "triforce-build");
|
||||
/// <summary>((Triforce, 11-26) xdg-open from the system's folder when it is there: a bare name is looked up in the launcher's own
|
||||
/// folder and the current one first, where any program of that name would run.</summary>
|
||||
public static string XdgOpen => File.Exists("/usr/bin/xdg-open") ? "/usr/bin/xdg-open" : "xdg-open";
|
||||
|
||||
public override string DefaultGameFolder => Path.Combine(HomeDir, "Games", "Triforce");
|
||||
public override string LogFolder(string home) => Path.Combine(StateHome, "triforce");
|
||||
// (hookshot_builder.py ngx_sdk_dir: beside the builder's versions, kept across updates)
|
||||
@@ -108,7 +112,7 @@ public sealed class LinuxPlatform : PlatformBase
|
||||
}
|
||||
|
||||
protected override void OpenFolderNow(string folder) =>
|
||||
Process.Start(new ProcessStartInfo("xdg-open") { ArgumentList = { folder }, UseShellExecute = false })?.Dispose();
|
||||
Process.Start(new ProcessStartInfo(XdgOpen) { ArgumentList = { folder }, UseShellExecute = false })?.Dispose();
|
||||
|
||||
// ---- processes ----
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public sealed class WindowsPlatform : PlatformBase
|
||||
try
|
||||
{
|
||||
if (process.HasExited) return;
|
||||
using var k = Process.Start(new ProcessStartInfo("taskkill", "/PID " + process.Id + " /T /F") { CreateNoWindow = true, UseShellExecute = false });
|
||||
using var k = Process.Start(new ProcessStartInfo(Path.Combine(Environment.SystemDirectory, "taskkill.exe"), "/PID " + process.Id + " /T /F") { CreateNoWindow = true, UseShellExecute = false });
|
||||
k?.WaitForExit(5000);
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in New Issue
Block a user