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:
ruckus7382sfgsgdf
2026-11-28 10:54:41 -06:00
parent 2df08c751e
commit b527e29adb
203 changed files with 18821 additions and 2051 deletions

View File

@@ -126,8 +126,41 @@ void hos_mouse_native_stick(int held) { InterlockedExchange(&stick_held, held ?
whether the game left the camera free, whether a stick turned it, and the degrees the mouse turned it by), and a replay
gives them back at the same update (HOS_INPUT_PLAY) in place of the mouse, the menu's row and the window's clock: the
camera then turns as it did, whatever the mouse and the settings do now (host/input_movie.c) */
/* ((Triforce, 11-27) The player camera's state as it changes, the first 12 times a run, with what last pushed the right
stick (host/nn_hid.c): 3 follows Link, 4 the player's (the game's own centering waits for R3 or a recenter). A load of
his save in the lab: -1 -> 4 -> 0 -> 3 within 0.5 s, nothing on the stick. A report: at some loads the camera stopped
following Link until R3 (a Pro controller connected over Bluetooth while it loaded); the next log says whether the
camera stayed in 4 and whether a stick, the mouse or the keys pushed it then. Whatever the Mouse camera row */
static void camera_state_note(uint64_t cam) {
static uint32_t was = 0xffffffffu;
static int said;
static int64_t first_ns;
static SRWLOCK lock = SRWLOCK_INIT; /* (the game's executors update it on several threads) */
if (said >= 12 || !looks_like_camera(cam)) return;
uint32_t state;
memcpy(&state, GP(cam + STATE_AT), 4);
if (state == was) return;
AcquireSRWLockExclusive(&lock);
const uint32_t before = was;
was = state;
ReleaseSRWLockExclusive(&lock);
if (before == state) return;
const int64_t now = hos_now_ns();
if (!first_ns) first_ns = now;
said++;
void hos_hid_rstick_said(char *out, size_t n);
char who[320];
hos_hid_rstick_said(who, sizeof who);
hos_log("camera: state %d -> %u (%s), %.1f s after the first camera; the right stick last pushed by: %s",
before == 0xffffffffu ? -1 : (int)before, state,
state == STATE_PLAYER ? "the player's: the game follows Link again after R3" : state == STATE_FOLLOWS ? "follows Link" :
"another view",
(now - first_ns) / 1e9, who);
}
void hos_mouse_camera(uint64_t cam) {
if (!cam) return;
camera_state_note(cam);
/* (no recording written or played: as before, the mouse camera's row first, and nothing of the guest's read while it is
off. With one, every update goes through it, the native camera on or not) */
const int recorded = hos_input_movie_active();