Added logic to lock emulation when modifying cheats.

This commit is contained in:
Matthew Budd 2020-08-02 20:31:21 -04:00
parent 7d6f1fdacc
commit e99cc1d64d
1 changed files with 4 additions and 0 deletions

View File

@ -783,8 +783,12 @@ void GuiCheatsDialog_t::updateCheatParameters(void)
//printf("Name: %s \n", name.c_str() );
fceuWrapperLock();
FCEUI_SetCheat( row, name.c_str(), a, v, c, s, type);
fceuWrapperUnLock();
showActiveCheatList(false);
}
//----------------------------------------------------------------------------