mirror of https://github.com/stella-emu/stella.git
libretro runahead
This commit is contained in:
parent
68d49f8e43
commit
1e7ff8974f
|
@ -593,6 +593,14 @@ void retro_deinit()
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
size_t retro_serialize_size()
|
||||
{
|
||||
int runahead = -1;
|
||||
if(environ_cb(RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE, &runahead))
|
||||
{
|
||||
// maximum state size possible
|
||||
if(runahead & 4)
|
||||
return 0x100000;
|
||||
}
|
||||
|
||||
return stella.getStateSize();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue