From b3a17726b601a489a7b1e9fdbf589cc1b4c12409 Mon Sep 17 00:00:00 2001 From: Florin9doi Date: Sat, 6 Jan 2024 00:42:03 +0200 Subject: [PATCH] GPS: Set valid values and request updates on savestate loading Previously the gpsData/satData structs were empty until any app executed sceUsbGpsOpen() --- Core/HLE/sceUsbGps.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/HLE/sceUsbGps.cpp b/Core/HLE/sceUsbGps.cpp index fe9fdf66d5b8..845e58473be9 100644 --- a/Core/HLE/sceUsbGps.cpp +++ b/Core/HLE/sceUsbGps.cpp @@ -48,6 +48,10 @@ void __UsbGpsDoState(PointerWrap &p) { return; Do(p, gpsStatus); + if (gpsStatus == GPS_STATE_ON) { + GPS::init(); + System_GPSCommand("open"); + } } void __UsbGpsShutdown() {