Skip to content

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

Merged
frysee merged 1 commit into
LoveRetro:mainfrom
carroarmato0:feat/retroarch-cheat-format
Aug 15, 2026
Merged

feat: support RetroArch's new cheat format (#795)#798
frysee merged 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.
@frysee
frysee force-pushed the feat/retroarch-cheat-format branch from 887d9e5 to 873162f Compare August 15, 2026 15:36
@frysee
frysee merged commit 9861cac into LoveRetro:main Aug 15, 2026
62 checks passed
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.

2 participants