From 283107bebe862596ef6f6786c8be59dff7c69d44 Mon Sep 17 00:00:00 2001 From: Mike Klaas Date: Sat, 25 Jul 2026 08:57:50 -0700 Subject: [PATCH] [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) --- src/pipboy.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pipboy.cc b/src/pipboy.cc index b9a67e78..cd8d0640 100644 --- a/src/pipboy.cc +++ b/src/pipboy.cc @@ -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);