mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
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:
parent
1f8191ec9b
commit
b3a17726b6
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ void __UsbGpsDoState(PointerWrap &p) {
|
|||
return;
|
||||
|
||||
Do(p, gpsStatus);
|
||||
if (gpsStatus == GPS_STATE_ON) {
|
||||
GPS::init();
|
||||
System_GPSCommand("open");
|
||||
}
|
||||
}
|
||||
|
||||
void __UsbGpsShutdown() {
|
||||
|
|
Loading…
Add table
Reference in a new issue