Triforce v0.5.1

Hotfix for v0.5.0: crashes (NX2navi game folder refused by Setup, heap-full retries, GTX 10 series noise pass and whole VRAM mirrors, code-patch mods kept with their code, no page file warning), graphics (DLSS with frame generation, DLSS coming back, AMD storage buffer alignment, mesh index map, shared memory barrier, shader conversions, integrated GPUs' uniform snapshot, a Mesh shaders row), controls (microphone after restart, button prompts with a mod's size table, sprint vs Hide text, native mouse camera, controller after Restart now), Setup's Preparing shaders step, and the Linux link fix.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-18 12:06:48 -06:00
parent 72793f2231
commit a750a21025
54 changed files with 1806 additions and 114 deletions

View File

@@ -488,8 +488,17 @@ static DWORD WINAPI display_main(void *p) {
/* (no activate: shown at the bottom of the z-order, so a game in front keeps its focus) */
if (noactivate)
SetWindowPos(hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_SHOWWINDOW);
else
else {
ShowWindow(hwnd, SW_SHOW);
/* ((Triforce, 11-18) brought to the front: after the Insert menu's Restart now the new window opened behind
another one (the run that started it had exited meanwhile, and the window it handed the front to kept it), and
the controllers, which count only while the game is in front (nn_hid.c), did nothing until the game was quit
and started by hand (#bug-tracker "Controller fails to work upon restart"). The run before allows it
(hos_relaunch.c AllowSetForegroundWindow); a start from Setup or an icon is in front already) */
SetForegroundWindow(hwnd);
if (GetForegroundWindow() != hwnd)
hos_log("display: the window did not come to the front at its start (controllers count once it is in front)");
}
if (getenv("HOS_FULLSCREEN") && atoi(getenv("HOS_FULLSCREEN"))) set_fullscreen(hwnd, 1);
RAWINPUTDEVICE rid = {1, 2, 0, hwnd}; /* generic desktop mouse: WM_INPUT while the window is in front */
RegisterRawInputDevices(&rid, 1, sizeof rid);