mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
PIO: Fix failure to load state with different cart type
This commit is contained in:
parent
b8fa97e1a7
commit
00278fa905
@ -856,7 +856,7 @@ bool PIO::DoState(StateWrapper& sw)
|
||||
WARNING_LOG("State contains PIO device {}, expected {}", Settings::GetPIODeviceTypeModeName(device_type),
|
||||
Settings::GetPIODeviceTypeModeName(g_settings.pio_device_type));
|
||||
g_pio_device->Reset();
|
||||
sw.SkipBytes(pio_state_size);
|
||||
sw.SkipBytes(pio_state_size - sizeof(pio_state_size));
|
||||
}
|
||||
|
||||
return !sw.HasError();
|
||||
|
Loading…
x
Reference in New Issue
Block a user