libretro / gambatte-libretro

Hard fork of Gambatte to the libretro API.
http://sourceforge.net/projects/gambatte/
GNU General Public License v2.0
104 stars 78 forks source link

Fix cheats for libretro #131

Closed hugoarpin closed 5 years ago

hugoarpin commented 5 years ago

Fixes #81

The cheats were not integrated properly, as a result, only the last cheat was applied. This is because gamebatte expects all cheats to be set in one go and separated by a semi-colon. But the libretro api wants to apply cheats one at a time. Therefore every time a cheat is applied it disables the previous one.

Also clearCheats was not properly implemented at all, it did not take into account gameshark codes and it was simply not working for gamegenie, therefore it was impossible to disable a cheat without reloading the core.