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

@@ -25,7 +25,17 @@ static int si_boxes, si_threads;
#undef CreateThread
#define MessageBoxA(window, text, title, type) (si_boxes++, 0)
#define ShellExecuteA(window, verb, file, args, dir, show) ((void)0)
#define CreateThread(security, stack, fn, arg, flags, id) (si_threads++, (void)(fn), (HANDLE)NULL)
/* ((Triforce, 11-22) si_threads counts the notice's threads, which is what the tests ask about; a decoder's decode-ahead
worker (nn_video.c ahead_start) is another function: counted apart and, as any thread here, not made, so every decoder
decodes in the game's calls) */
static int si_workers;
static DWORD WINAPI av1_notice(LPVOID unused);
static inline HANDLE si_no_thread(LPTHREAD_START_ROUTINE fn) {
if (fn == av1_notice) si_threads++;
else si_workers++;
return NULL;
}
#define CreateThread(security, stack, fn, arg, flags, id) si_no_thread(fn)
#endif
/* ---- hos.h ---- */
@@ -71,6 +81,12 @@ static int64_t hos_now_ns(void) { return si_now; }
static void hos_sleep_ns(int64_t ns) { si_now += ns; }
static int hos_vcore_away(void) { return 0; }
static void hos_vcore_back(void) {}
/* ((Triforce, 11-22) the decode-ahead worker's calls (nn_video.c "decode ahead"). CreateThread above gives no thread, so no
decoder has a worker here and the acquire decodes in the call, as these tests watch it; the two below are never reached) */
static void hos_thread_pin(HANDLE thread, const char *name) { (void)thread, (void)name; }
static int hos_cv_sleep(void *cv, void *lk, unsigned ms) {
return SleepConditionVariableSRW((PCONDITION_VARIABLE)cv, (PSRWLOCK)lk, ms, 0);
}
static uint64_t si_sys = 0x30000;
static uint64_t hos_sys_alloc(uint64_t size, uint64_t align) {
(void)align;