GPS: Set valid values and request updates on savestate loading

Previously the gpsData/satData structs were empty until any app
executed sceUsbGpsOpen()
This commit is contained in:
Florin9doi 2024-01-06 00:42:03 +02:00
parent 1f8191ec9b
commit b3a17726b6

View file

@ -48,6 +48,10 @@ void __UsbGpsDoState(PointerWrap &p) {
return;
Do(p, gpsStatus);
if (gpsStatus == GPS_STATE_ON) {
GPS::init();
System_GPSCommand("open");
}
}
void __UsbGpsShutdown() {