Skip to content

Merge pret/master up to pret#2283#9871

Open
mrgriffin wants to merge 8 commits intorh-hideout:masterfrom
mrgriffin:rhh-master-pret-2283
Open

Merge pret/master up to pret#2283#9871
mrgriffin wants to merge 8 commits intorh-hideout:masterfrom
mrgriffin:rhh-master-pret-2283

Conversation

@mrgriffin
Copy link
Copy Markdown
Collaborator

@mrgriffin mrgriffin commented Apr 27, 2026

Checked before/after "Migrate to INCGFX", sha256sum is 5fda794c75769a2c5d8969f5b75449ea27bf57ce5ca96237c4aa49d0c13c54c2.

Things to note in the release changelog:

  • Migration script for INCGFX available in migration_scripts/1.15/migrate_incgfx.py. Run it from clean (e.g. make clean && git ls-files | grep 'src/.*\.[ch]$' | xargs grep -l INCBIN | xargs python3 migration_scripts/1.15/migrate_incgfx.py).
  • Expansion was migrated to INCGFX explicitly in 3ad3a2e rather than as part of the 5e5b94d. This should allow downstreams to revert just that change.
  • See INCGFX: in-source arguments for gbagfx pret/pokeemerald#2283 for more details.

huderlem and others added 6 commits April 8, 2026 18:53
* Implement remaining MEMACC commands

* Remove unnecessary memacc cases
The signed INCBINs are unused, I assume they were once for audio data
but that is handled in assembly now.
'INCGFX' is like 'INCBIN' except that it specifies the arguments to pass
to 'gbagfx' which alleviates the user-unfriendliness caused by catch-all
rules.

Specifically, users frequently forget to add to 'spritesheet_rules.mk'
when adding object event graphics, and then the built '.4bpp' file is
not invalidated when the add their rule so they have to 'touch' the
source file or similar.

The built artifacts are placed in 'build/assets'.
The exact command used to migrate source files was:
  git ls-files | grep 'src/.*\.[ch]$' | xargs grep -l INCBIN | xargs python3 migrate_incgfx.py

The Makefile rules were cleaned up manually by looking for graphics
rules and keeping only those ending with '\' (what the migration script
calls a "Multi-line rule"). You may think some of wallpaper rules could
be removed, but they're inputs for the '@cat $^ >$@' rules which are
currently unable to be migrated to 'INCGFX'.
INCGFX: in-source arguments for gbagfx
@mrgriffin
Copy link
Copy Markdown
Collaborator Author

mrgriffin commented Apr 27, 2026

Ready for review, but some ongoing discussion on the best way to merge it so that downstreams are able to revert the INCGFX conversion and either stick with INCBIN or run the migration script themselves.

EDIT: I'll just split the PR into two when it's ready to merge—force push to drop 91389f4 (so we can merge this), and then PR 91389f4 separately (so we can squash it and thus downstreams easily revert or merge up until before it, "merge it" by keeping their code, and then merge everything after it).

Reverts all conversions to 'INCGFX', they will be contained into a
separate revertable commit.
@mrgriffin mrgriffin force-pushed the rhh-master-pret-2283 branch from 91389f4 to 3ad3a2e Compare April 28, 2026 06:21
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