Skip to content

Commit

Permalink
Fix cheats
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaobrien committed Oct 2, 2023
1 parent 91b1f5c commit cd65b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/drivers/platform_emscripten.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ void cmd_save_state(void)
#ifdef EMULATORJS
void set_cheat(unsigned index, bool enabled, const char *code)
{
command_event(CMD_EVENT_LOAD_STATE, NULL);
retro_cheat_set(index, enabled, code);
}
void reset_cheat(void)
{
retro_cheat_reset();
retro_cheat_reset();
}
#else
void cmd_load_state(void)
Expand Down

0 comments on commit cd65b53

Please sign in to comment.