Skip to content

Commit

Permalink
These are needed to reset on systems without a keyboard.
Browse files Browse the repository at this point in the history
It is also not a bug that load state after pushing reset still resets,
this is the only way to make it work for now.

On mac it will actually crash the OS and make you reboot.
  • Loading branch information
meepingsnesroms committed Apr 5, 2017
1 parent 511848c commit d9e7703
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/libretro.c
Expand Up @@ -1308,7 +1308,9 @@ size_t retro_get_memory_size(unsigned id)

void retro_reset(void)
{
SysReset();
//hack to prevent retroarch freezing when reseting in the menu but not while running with the hot key
rebootemu = 1;
//SysReset();
}

static const unsigned short retro_psx_map[] = {
Expand Down Expand Up @@ -1515,6 +1517,11 @@ static int min(int a, int b)
void retro_run(void)
{
int i;
//SysReset must be run while core is running,Not in menu (Locks up Retroarch)
if(rebootemu != 0){
rebootemu = 0;
SysReset();
}

input_poll_cb();

Expand Down

0 comments on commit d9e7703

Please sign in to comment.