Skip to content

feat: support RetroArch's new cheat format (#795) - #798

Open
carroarmato0 wants to merge 1 commit into
LoveRetro:mainfrom
carroarmato0:feat/retroarch-cheat-format
Open

feat: support RetroArch's new cheat format (#795)#798
carroarmato0 wants to merge 1 commit into
LoveRetro:mainfrom
carroarmato0:feat/retroarch-cheat-format

Conversation

@carroarmato0

Copy link
Copy Markdown
Collaborator

libretro-database's FBNeo cheats put the count last and quoted, and describe a memory write instead of a code string, so parsing failed and the cheats menu showed "No cheat file loaded".

Read the count from anywhere in the file, accept quoted values, and apply memory-write cheats each frame. Also fixes Cheats_load returning an undefined value.

Tested this against the game and cheat table used when submitting: #795
The cheats are correctly loaded in the new format an verified to work.

Backwards compatibility also tested with a random other game using the same old format.

libretro-database's FBNeo cheats put the count last and quoted, and
describe a memory write instead of a code string, so parsing failed and
the cheats menu showed "No cheat file loaded".

Read the count from anywhere in the file, accept quoted values, and apply
memory-write cheats each frame. Also fixes Cheats_load returning an
undefined value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant