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:
@@ -355,7 +355,12 @@ public sealed class GameOptionsFile : IGameOptionValues
|
||||
}
|
||||
|
||||
bool GpuNameDiffers(int v) =>
|
||||
GameOptionsSchema.GpuNameOf(v) is { } name && (Raw(GameOptionsSchema.GpuNameKey) ?? "").Trim() != name;
|
||||
GameOptionsSchema.GpuNameOf(v) is { } name && (Raw(GameOptionsSchema.GpuNameKey) ?? "").Trim() != AsFileText(name);
|
||||
|
||||
/// <summary>((Triforce, 11-26) A text as the file holds it: its UTF-8 bytes, each one char of the Latin-1 text the file is read and
|
||||
/// written as. Written as Latin-1 directly, a GPU name with (R) or (TM) signs came out as other bytes, and the game, which reads the
|
||||
/// file as UTF-8, did not find the card by its name.</summary>
|
||||
static string AsFileText(string s) => Encoding.Latin1.GetString(Encoding.UTF8.GetBytes(s));
|
||||
|
||||
/// <summary>The benchmark's recommendations (key to value), each with Set's rules, in the order given. KeyNotFoundException,
|
||||
/// and nothing set, for a key that is no row (nor a merged row's part). Returns the values afterwards, for the keys given.
|
||||
@@ -411,7 +416,7 @@ public sealed class GameOptionsFile : IGameOptionValues
|
||||
// ((Triforce) 11-20) the GPU device row's card by its name too: the game finds it by the name first, so the number
|
||||
// counted in Windows' order (no triforce_gpus.txt before the game's first run) no longer picks another card. Auto: empty
|
||||
if (set.TryGetValue(GameOptionsSchema.GpuKey, out var gpu))
|
||||
write[GameOptionsSchema.GpuNameKey] = (GameOptionsSchema.GpuNameOf(gpu) ?? "").Replace('\r', ' ').Replace('\n', ' ');
|
||||
write[GameOptionsSchema.GpuNameKey] = AsFileText((GameOptionsSchema.GpuNameOf(gpu) ?? "").Replace('\r', ' ').Replace('\n', ' '));
|
||||
// (Custom's size is its two sides together: the launcher shows the pair as the game takes it (Effective: 7680x4320 in
|
||||
// the file is 5120x2880), so a change of one side is a change of that pair. Written with only the changed side,
|
||||
// 3840 beside the file's 4320 would be another size than the one shown. Both sides whenever either is written)
|
||||
|
||||
Reference in New Issue
Block a user