mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Do not attempt to start rewind if state_size is 0.
This commit is contained in:
parent
8ba727ab30
commit
9d2ca33b5b
@ -1408,6 +1408,11 @@ static void init_rewind(void)
|
||||
return;
|
||||
|
||||
g_extern.state_size = pretro_serialize_size();
|
||||
if (!g_extern.state_size)
|
||||
{
|
||||
RARCH_ERR("Implementation does not support save states. Cannot use rewind.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
// Make sure we allocate at least 4-byte multiple.
|
||||
size_t aligned_state_size = (g_extern.state_size + 3) & ~3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user