Get rid of RETRO_ENVIRONMENT_EXEC_ESCAPE

This commit is contained in:
twinaphex 2016-01-25 03:07:23 +01:00
parent d71c782459
commit 24216cb54c
2 changed files with 2 additions and 24 deletions

View File

@ -1216,8 +1216,9 @@ bool rarch_environment_cb(unsigned cmd, void *data)
/* Private extensions for internal use, not part of libretro API. */
case RETRO_ENVIRONMENT_EXEC:
case RETRO_ENVIRONMENT_EXEC_ESCAPE:
{
RARCH_LOG("Environ (Private) EXEC.\n");
char *fullpath = NULL;
runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath);
@ -1234,13 +1235,6 @@ bool rarch_environment_cb(unsigned cmd, void *data)
rarch_ctl(RARCH_CTL_LOAD_CONTENT, NULL);
#endif
if (cmd == RETRO_ENVIRONMENT_EXEC_ESCAPE)
{
RARCH_LOG("Environ (Private) EXEC_ESCAPE.\n");
runloop_ctl(RUNLOOP_CTL_SET_EXEC, NULL);
}
else
RARCH_LOG("Environ (Private) EXEC.\n");
}
break;

View File

@ -35,22 +35,6 @@
* SET_LIBRETRO_PATH, and path to
* game is passed in _EXEC. NULL
* means no game. */
#define RETRO_ENVIRONMENT_EXEC_ESCAPE (RETRO_ENVIRONMENT_PRIVATE | 1)
/* const char * --
* Requests that this core is
* deinitialized, and a new core
* is loaded.
*
* It also escapes the main loop
* the core is currently
* bound to.
*
* The libretro core used is set
* with SET_LIBRETRO_PATH, and
* path to game is passed in
* _EXEC. NULL means no game.
*/
#endif