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:
@@ -7,6 +7,7 @@ namespace Triforce.Launcher;
|
||||
/// media/png/NAME a texture from the player's own game (Core/GameFiles), e.g. the title logo
|
||||
/// media/wav/ID music or a sound from the player's own game
|
||||
/// save/N.jpg the picture in save file N (the game's own caption.sav)
|
||||
/// char/... the Character page's Link: his posed mesh, textures, masks and recoloured maps
|
||||
/// Anything not there answers 404, and the page falls back (no game yet: no game art, no music).</summary>
|
||||
public sealed class Content
|
||||
{
|
||||
@@ -16,6 +17,8 @@ public sealed class Content
|
||||
readonly Dictionary<string, string> names;
|
||||
public MediaSource? Media;
|
||||
public Func<int, byte[]?>? SavePicture;
|
||||
/// <summary>((Triforce, 11-29) char/...: the Character page's model, textures and colour maps (Backend.Character.cs).</summary>
|
||||
public Func<string, (byte[] Data, string Mime)?>? Character;
|
||||
|
||||
public Content()
|
||||
{
|
||||
@@ -48,6 +51,8 @@ public sealed class Content
|
||||
var data = Media(parts[1], name);
|
||||
return data == null ? null : (data, parts[1] == "png" ? "image/png" : "audio/wav");
|
||||
}
|
||||
if (path.StartsWith("char/", StringComparison.Ordinal) && Character != null)
|
||||
return Character(path["char/".Length..]);
|
||||
if (path.StartsWith("save/", StringComparison.Ordinal) && SavePicture != null &&
|
||||
int.TryParse(Path.GetFileNameWithoutExtension(path)[..Math.Min(2, Path.GetFileNameWithoutExtension(path).Length)], out var n))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user