maketex: 50.32% -> 99.82% (rev1 symbols + Rev1 save/memcard differences; v1.00 byte-identical) - #43
Open
SirEnkido wants to merge 4 commits into
Open
maketex: 50.32% -> 99.82% (rev1 symbols + Rev1 save/memcard differences; v1.00 byte-identical)#43SirEnkido wants to merge 4 commits into
SirEnkido wants to merge 4 commits into
Conversation
…mages/cardSetStatusNoCard2 in GSAE01_rev1 symbols) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ewrite when a callback is given; VERSION_GSAE01_rev1 guard, v1.00 object byte-identical) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…of loadMemCardImages, language check via getCurLanguage; named string-literal offsets; v1.00 object byte-identical) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…, objects unchanged) Co-Authored-By: Claude Fable 5 <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.
What changed
main/dlls/engine/2/maketex(memory-card save/load) on GSAE01_rev1: 50.32% → 99.82%, in three steps:config/GSAE01_rev1/symbols.txt): namedsaveGame_prepareAndWrite,loadMemCardImages,cardSetStatusNoCard2from the v1.00 config → 50.32% → 87.90%saveGame_prepareAndWrite: Rev 1 skips the slot rewrite when a callback is given (retail asm at 0x8007ED98 provably gates oncb == NULL) → 88.03%loadMemCardImages: Rev 1 moved the comment writer into a separate global function (loadMemCardComments, defined afterloadMemCardImages) and switched the check fromgGameTextFontIsSjistogetCurLanguage() == LANGUAGE_JAPANESE, reordering the string pool; string-literal offsets are named macros → 99.82%Steps 2–3 are wrapped in
#ifdef VERSION_GSAE01_rev1(the#elsepath is upstream's v1.00 code, whitespace-neutral).Evidence
origin/main'smaketex.ccompiled with the same GC/2.0 cflags. The active GSAE01 target is untouched.ninja all_source progress build/GSAE01_rev1/report.jsonexits 0; independently re-audited (a whitespace regression in the SJIS block was caught and fixed in a follow-up commit)This PR introduces the first
#ifdef VERSION_GSAE01_rev1guards insrc/(5 of them; upstream has none outside the borroweddolphin/pad/Pad.cVERSION_GCCP01). I want to be upfront about that rather than bury it:configure.pyitself (-DVERSION_{version}), so the mechanism exists by design;docs/version_progress.md's "no version-specific source guards" describes whattools/version_progress.pydoes when projecting splits, andAGENTS.mdhas no rule against guards — but this is still a judgment call that's yours, not mine.engine/0uses the same technique with the same byte-identical-v1.00 verification.)6d72368d3b, symbols-only, 50.32% → 87.90%). Or tell me your preferred style and I'll restructure.Other notes
loadMemCardImages99.17% /loadMemCardComments99.03% residual: MWCC rematerializes thesMemoryCardFileNameStringbase once (lis/addivsaddi r3,r31,0xa0) — five source variants tried, none changed it; root cause is the pre-existing upstreamnames + offsetaddressing of a char array defined insrc/track/intersect_memcard.c, not introduced here..datafor this unit stays low (gMemoryCardBannerAssetNames, 168 bytes) because the branch keeps the single v1.00-order byte array; deliberately did not add a sixth guard around data.loadMemCardCommentsis a newly coined name (no retail symbol); rename freely.Produced by Claude agents following
AGENTS.md, operated by @SirEnkido.🤖 Generated with Claude Code