diff options
Diffstat (limited to 'libretro.c')
-rw-r--r-- | libretro.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -647,7 +647,23 @@ void retro_cheat_set(unsigned index, bool enabled, const char* code) if (!enabled) return; - cheat_parse(index, code); + switch (cheat_parse(index, code)) + { + case CheatErrorTooMany: + show_warning_message("Too many active cheats!", 2500); + break; + case CheatErrorTooBig: + show_warning_message("Cheats are too big!", 2500); + break; + case CheatErrorEncrypted: + show_warning_message("Encrypted cheats are not supported!", 2500); + break; + case CheatErrorNotSupported: + show_warning_message("Cheat type is not supported!", 2500); + break; + case CheatNoError: + break; + }; } static void extract_directory(char* buf, const char* path, size_t size) |