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;
|
return;
|
||||||
|
|
||||||
g_extern.state_size = pretro_serialize_size();
|
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.
|
// Make sure we allocate at least 4-byte multiple.
|
||||||
size_t aligned_state_size = (g_extern.state_size + 3) & ~3;
|
size_t aligned_state_size = (g_extern.state_size + 3) & ~3;
|
||||||
|
|
Loading…
Reference in New Issue