Implement RETRO_ENVIRONMENT_GET_FASTFORWARDING

This commit is contained in:
twinaphex 2018-09-08 02:19:05 +02:00
parent 7c2da36af9
commit df059c585f
3 changed files with 16 additions and 1 deletions

View File

@ -1851,6 +1851,15 @@ bool rarch_environment_cb(unsigned cmd, void *data)
}
}
break;
case RETRO_ENVIRONMENT_GET_FASTFORWARDING:
{
extern bool runloop_fastmotion;
RARCH_LOG("RETRO_ENVIRONMENT_GET_FASTFORWARDING %d\n", runloop_fastmotion);
*(bool *)data = runloop_fastmotion;
}
break;
default:
RARCH_LOG("Environ UNSUPPORTED (#%u).\n", cmd);

View File

@ -1189,6 +1189,12 @@ struct retro_led_interface
* Returns a MIDI interface that can be used for raw data I/O.
*/
#define RETRO_ENVIRONMENT_GET_FASTFORWARDING (49 | RETRO_ENVIRONMENT_EXPERIMENTAL)
/* bool * --
* Boolean value that indicates whether or not the frontend is in
* fastforwarding mode.
*/
/* Retrieves the current state of the MIDI input.
* Returns true if it's enabled, false otherwise. */
typedef bool (RETRO_CALLCONV *retro_midi_input_enabled_t)(void);

View File

@ -238,7 +238,7 @@ static bool runloop_paused = false;
static bool runloop_idle = false;
static bool runloop_exec = false;
static bool runloop_slowmotion = false;
static bool runloop_fastmotion = false;
bool runloop_fastmotion = false;
static bool runloop_shutdown_initiated = false;
static bool runloop_core_shutdown_initiated = false;
static bool runloop_perfcnt_enable = false;