Triforce v0.8.0

Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-25 10:21:32 -06:00
parent 861702476a
commit 4fa4f9188b
881 changed files with 179428 additions and 15581 deletions

View File

@@ -73,6 +73,18 @@ static class Storage
return running.StartsWith(Path.GetFullPath(versionDir).TrimEnd('\\') + "\\", StringComparison.OrdinalIgnoreCase);
}
/// (Triforce) make_game.py keep_translation left the lift's small files in sa (its .lift_key marked "kept"): the next update with the
/// same tools skips the lift with them. Not let go after a build (Free up space still lets them go)
static bool KeptTranslation(string sa)
{
try
{
var words = File.ReadAllText(Path.Combine(sa, "gen", ".lift_key")).Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries);
return words.Length >= 3 && words[2] == "kept";
}
catch (Exception e) when (e is IOException or UnauthorizedAccessException) { return false; }
}
/// What Free lets go. afterBuild: what goes once the game is ready, the compiled objects of the build (objcache, which make_game.py
/// prunes to them) and their system headers' stamp kept, so that the next update compiles only what changed (issue 1287: every
/// update compiled all ~600 files again, an hour and more). The Free up space button lets those go too. (Triforce) Never an
@@ -82,7 +94,8 @@ static class Storage
static IEnumerable<string> Freeable(bool afterBuild = false, bool installing = false)
{
foreach (var d in afterBuild ? new[] { "sa", "exefs", "probe" } : new[] { "objcache", "sa", "exefs", "probe" })
yield return Path.Combine(Work, d);
if (!(afterBuild && d == "sa" && KeptTranslation(Path.Combine(Work, d))))
yield return Path.Combine(Work, d);
foreach (var d in installing ? new[] { "update" } : new[] { "downloads", "update" })
yield return Path.Combine(Base, d);
var versions = Path.Combine(Base, "versions");