libretro: Cheat support

This commit is contained in:
Connor McLaughlin
2020-09-25 21:16:33 +10:00
parent 1e6815634a
commit 40037d6e90
6 changed files with 90 additions and 39 deletions

View File

@ -79,12 +79,14 @@ RETRO_API bool retro_unserialize(const void* data, size_t size)
RETRO_API void retro_cheat_reset(void)
{
Log_ErrorPrintf("retro_cheat_reset()");
Log_InfoPrint("retro_cheat_reset()");
g_libretro_host_interface.retro_cheat_reset();
}
RETRO_API void retro_cheat_set(unsigned index, bool enabled, const char* code)
{
Log_ErrorPrintf("retro_cheat_set(%u, %u, %s)", index, enabled, code);
Log_InfoPrintf("retro_cheat_set(%u, %u, %s)", index, enabled, code);
g_libretro_host_interface.retro_cheat_set(index, enabled, code);
}
RETRO_API bool retro_load_game(const struct retro_game_info* game)