cht: rejoin 848 PSX Game Buster codes fragmented into 4-char pieces - #1713
Open
ArjunKdaf wants to merge 1 commit into
Open
cht: rejoin 848 PSX Game Buster codes fragmented into 4-char pieces#1713ArjunKdaf wants to merge 1 commit into
ArjunKdaf wants to merge 1 commit into
Conversation
These GameShark-family codes had their 12-hex-digit body split into 4-char pieces (800E+3290+0003 instead of 800E3290+0003). No PlayStation core applies any of them: PCSX-ReARMed rejects the entry because a 4-hex token can never pass its address gate, Beetle PSX discards tokens that are neither 8 nor 12 chars, and SwanStation parses them into pure Nop instructions, so the cheat appears to load and does nothing. Rejoined to the canonical AAAAAAAA+VVVV form used by the other 20334 PSX codes. Digits are unchanged; every code rejoins to an exact multiple of 12, and wildcards land only in value fields. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
848 codes across 95 PlayStation Game Buster files are split into four-character fragments —
8006+CE68+6400where the canonical form is8006CE68+6400.None of them apply. PCSX-ReARMed hands the string to
AddCheat, which needs an eight-digit address and a four-digit value; a four-digit fragment fails the address parse. Beetle PSX drops them on its token-length check. SwanStation loads them as no-ops.The repair is mechanical: rejoin the first two fragments into the eight-digit address. No value is altered anywhere in this branch.
Tested on hardware
TrimUI handheld, PCSX-ReARMed,
cht/Sony - PlayStation/Croc - Legend of the Gobbos (USA, Europe) (Game Buster).cht. Nothing in the file applied before the change. After it, "100 Diamonds" (80074BC0+0064), "Infinite Lives" (80075234+00FF) and "Six Gobbos Found" (80074BC8+0006) all apply.What still does not work, and why it is not this change
I also tested
Crash Bandicoot 2 - Cortex Strikes Back (USA, Europe) (Game Buster).cht. "Open all Levels" (8006CE74+43C8) works. "100 Lives", "All Crystals" and "All Gems" do not.Those three carry values that look wrong for the game — "100 Lives" is
+6400where the equivalent code elsewhere in the corpus is+0064. That is a pre-existing defect in the source entries. This branch only rejoins addresses and never touches a value, so those codes were equally broken before; the difference is that previously they could not be parsed at all, so nothing in the file could be reached. Fixing their values needs a source, not a transform, and is not part of this change.How I checked it
AddCheatand Beetle PSX's token-length check, then counted the patches that would actually apply across the changed files: PCSX 36 before / 1,273 after, Beetle 36 / 1,274, none lost.cheatN_codevalue. No files added or removed, no other keys touched.