Triforce v0.8.5.2

Hotfix: the brightness flashes fixed without the fps cost (the readback wait only for ranges the CPU resets), and the Discord status names where Link is by default.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-28 15:45:28 -06:00
parent 0f7d57ac14
commit 8cb23131f9
13 changed files with 412 additions and 54 deletions

View File

@@ -90,10 +90,12 @@ int main(int argc, char **argv) {
const DiscordFields no_tokens = {"Kokiri Forest", "KokiriForest_Child", "Child", "v3.0.0", "", "", "v3.0.0", "3", "3", "0", "", ""};
DiscordSettings s;
discord_settings_default(&s);
/* (the default: as before, "Triforce" and the release, in a map or not) */
CHECK(lines(s.status, &play, "Triforce v3.0.0-rc.7-25-g7a029028", "") && lines(s.status, &title, "Triforce v3.0.0-rc.7-25-g7a029028", ""));
/* ((Triforce, 11-28) the default: the place (DISCORD_TEXT_PLACE) in a map, the version on the title screen */
CHECK(!strcmp(s.status, DISCORD_TEXT_PLACE));
CHECK(lines(s.status, &play, "Kakariko Village - Adult", "") && lines(s.status, &title, "v3.0.0 RC7", ""));
CHECK(lines(s.image_text, &release, "Triforce v3.0.0", "") && !strcmp(s.image, DISCORD_IMAGE_DEFAULT));
CHECK(!discord_settings_use_game(&s)); /* (the game's state is not read for it) */
CHECK(discord_settings_use_game(&s)); /* (the game's state is read for it) */
CHECK(discord_settings_line(&s, "discord_text=Triforce {release}\n") && !discord_settings_use_game(&s)); /* (the old one: not read) */
CHECK(discord_settings_line(&s, "discord_text=" DISCORD_TEXT_PLACE "\n") && discord_settings_use_game(&s));
CHECK(discord_settings_line(&s, "discord_text={!age|x}") && discord_settings_use_game(&s));
CHECK(discord_settings_line(&s, "discord_text={version} {mapx}") && !discord_settings_use_game(&s));
@@ -273,7 +275,7 @@ def main():
stamp = {"start": 1700000000}
logo = "triangle_emblem_discord_zoomed_out_transparent" # (Triforce's art, as before)
want = {
"plain": {"details": "Triforce v3.0.0", "timestamps": stamp,
"plain": {"details": "Kakariko Village - Adult", "timestamps": stamp, # ((Triforce, 11-28) the default names the place)
"assets": {"large_image": logo, "large_text": "Triforce v3.0.0"}},
"play": {"details": "Kakariko Village - Adult", "timestamps": stamp,
"assets": {"large_image": logo, "large_text": "Triforce v3.0.0 RC7"}},