mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-18 00:18:22 +00:00
GET_CAN_REWIND.
This commit is contained in:
parent
19c5eab07a
commit
425af71450
@ -328,6 +328,11 @@ static bool environment_cb(unsigned cmd, void *data)
|
||||
SSNES_LOG("Environ SET_NEED_FULLPATH: %s\n", g_extern.system.need_fullpath ? "true" : "false");
|
||||
break;
|
||||
|
||||
case SNES_ENVIRONMENT_GET_CAN_REWIND:
|
||||
*(bool*)data = g_settings.rewind_enable;
|
||||
SSNES_LOG("Environ GET_CAN_REWIND: %s\n", g_settings.rewind_enable ? "true" : "false");
|
||||
break;
|
||||
|
||||
default:
|
||||
SSNES_LOG("Environ UNSUPPORTED (#%u)!\n", cmd);
|
||||
return false;
|
||||
|
@ -94,6 +94,11 @@ extern "C" {
|
||||
// Implementation must then use SNES_ENVIRONMENT_GET_FULLPATH.
|
||||
// This is useful for implementations with very large roms,
|
||||
// which are impractical to load fully into RAM.
|
||||
//
|
||||
#define SNES_ENVIRONMENT_GET_CAN_REWIND 7 // bool * --
|
||||
// Boolean value telling if SSNES is able to rewind.
|
||||
// Some implementations might need to take extra precautions
|
||||
// to allow this as smoothly as possible.
|
||||
|
||||
struct snes_geometry
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user