[Et tu] Move pipboy GAMEMODECHANGE hook (#595)

This now fires when the window is created, allowing scripts to manipulate it (and in particular, add "X days left" note)
This commit is contained in:
Mike Klaas
2026-07-25 08:57:50 -07:00
committed by GitHub
parent dd21129464
commit 283107bebe
+3 -2
View File
@@ -501,13 +501,14 @@ int pipboyOpen(int intent)
return 0;
}
ScopedGameMode gm(GameMode::kPipboy);
intent = pipboyWindowInit(intent);
if (intent == -1) {
return -1;
}
ScopedGameMode gm(GameMode::kPipboy);
windowRefresh(gPipboyWindow);
touch_set_touchscreen_mode(true);
mouseGetPositionInWindow(gPipboyWindow, &gPipboyPreviousMouseX, &gPipboyPreviousMouseY);