Skip to content

chore: Fix files for PC Engine / PC Engine CD - #1723

Open
leocck wants to merge 11 commits into
libretro:masterfrom
leocck:fix-pc-engine
Open

chore: Fix files for PC Engine / PC Engine CD#1723
leocck wants to merge 11 commits into
libretro:masterfrom
leocck:fix-pc-engine

Conversation

@leocck

@leocck leocck commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR organises the CHT files from PC Engine and PC Engine CD systems.

Disclaimer: I did a lot of manual evaluation and work. I did not rely on AI besides creating some controlled automation scripts

Context

The cht files from these two systems had many issues that prevent OpenEmu-Silicon emulator and any other emulator to find them.

The fixes required a lot of manual work and validation with game roms. As part of the work, the most important things were:

  • The cht files were all renamed to match what the DAT/RDB files defined, so that they could be found (Rumbles included). Many of them were just cosmetic changes (special characters, ordering, suffixes), and some other were a bit more tricky and required more investigation (versions, regions, etc.)
  • Some CD files were in the wrong folder and were moved around
  • There were duplicated cheats spread in two different cht files for the same game, they were merged into a single one, keeping the "1F0000:00" format as standard for these two systems

I used a preservation strategy and kept all information when there was no way to be sure which region/version the cht file was pointing to:

  • In cases where there were two options (region or revision), I decided to duplicate the cht file and leave one for each of them, so that the validation could be done later
  • When merging cht files for the same game, I preferred to remove only the exact duplicates, and kept the other codes as "Alternatives"
  • When a cht was specifying some extra region that was not included in the RDB, I kept it (did not delete it)

What was Tested

  • First, I tested a couple of games manually to see if cheats were working on the emulator.
  • After renaming the files, I tested if the emulator would match them based on the DAT/RDB entries
  • I also checked the cht files that did not have a match in the DAT/RDB, most of them turned out to be unpublished/alternative games

Linked Issues

Libretro Cheat Database Integration | OpenEmu-Silicon

Evidence

Screenshot 2026-09-10 at 16 00 24 Screenshot 2026-09-10 at 15 57 47

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