Skip to content

Cleaned up various ptr_ junk#170

Open
Selbi182 wants to merge 2 commits intosonicretro:ASfrom
Selbi182:AS
Open

Cleaned up various ptr_ junk#170
Selbi182 wants to merge 2 commits intosonicretro:ASfrom
Selbi182:AS

Conversation

@Selbi182
Copy link
Member

@Selbi182 Selbi182 commented Mar 7, 2026

  • Pattern Load Cues now define index and PLC ID in one go through new plcptr macro, introduced plcheader macro for individual lists, whitespace cleanup
  • Sonic animation script now uses sonani macro, Sonic frame IDs have been moved out of Constants.asm, deleted orphaned "Sonic (without frame IDs).asm" file
  • GameModeArray now uses gmptr macro, game mode ID labels have been moved out of Constants.asm
  • Reverted a handful of pointless object index ptr_ definitions (I guess this was never finished, and now it only served to add bloat)

Perhaps one day a proper, reusable macro can be introduced that can be used across the source. At this stage, my motivation is to get rid of the confusing double definitions by any means necessary.

(Eventually I also want to do something similar for the bgm/sfx definitions, but so far I haven't figured out an elegant solution that's also bit-perfect...)

Selbi182 added 2 commits March 7, 2026 15:13
- Pattern Load Cues now define index and PLC ID in one go through new plcptr macro, introduced plcheader macro for individual lists, whitespace cleanup
- Sonic animation script now uses sonani macro, Sonic frame IDs have been moved out of Constants.asm, deleted orphaned "Sonic (without frame IDs).asm" file
- GameModeArray now uses gmptr macro, game mode ID labels have been moved out of Constants.asm
- Reverted a handful of pointless object index ptr_ definitions (I guess this was never finished, and now it only served to add bloat)

Perhaps one day a proper, reusable macro can be introduced that can be used across the source. At this stage, my motivation is to get rid of the confusing double definitions by any means necessary.
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