Commit Graph

12 Commits

Author SHA1 Message Date
nmlgc 84ffdcb5b4 [Debloating] [th01] Compile all code with the `pascal` calling convention
Or rather, entirely move the calling convention choice to the compiler
command line rather than inconsistently mixing conventions within the
C++ code.

Part of P0229, funded by Ember2528.
2023-03-04 19:40:56 +01:00
nmlgc fec381d46c [Debloating] [th01] .GRP: Move palette fades to the main .GRP translation unit
Yes, this will make REIIDEN.EXE larger temporarily, but we want to
merge all three executables anyway.

Part of P0229, funded by Ember2528.
2023-03-04 19:40:55 +01:00
nmlgc 18398a3293 [Debloating] [th01] .GRP: Replace flag globals with a parameter
Might be a bit controversial, but *having* to specify a flag also makes
it clearer where the hardware palette is *not* mutated.

Part of P0229, funded by Ember2528.
2023-03-04 19:40:55 +01:00
nmlgc 65a9276180 [Debloating] [th01] .GRP: Remove the dumb palette load/show function
Part of P0229, funded by Ember2528.
2023-03-04 19:40:55 +01:00
nmlgc 0690425551 [Debloating] [th01] Remove unused low-level code
Code that serves no purpose in the original game, but would cause quite
the annoyance to other port developers who might not immediately
realize that this code is unused. Keeping some of the functions that
come in handy during debugging, though.

Part of P0229, funded by Ember2528.
2023-03-04 19:40:55 +01:00
nmlgc d0dcb5309e [Naming] [th01] .GRP: Palette fade delay frames per step
Part of P0229, funded by Ember2528.
2023-02-28 08:07:52 +01:00
nmlgc 41156c0e76 [Maintenance] [th01] .GRP: Describe the format
Part of P0229, funded by Ember2528.
2023-02-28 08:07:52 +01:00
nmlgc 8b24a07a09 [Decompilation] [th01] Sariel: Main function
Part of P0181, funded by Ember2528.
2022-01-31 08:31:18 +01:00
nmlgc 026fff63a5 [Decompilation] [th01] Ending picture loading and display
Aww, how far we've come with inlining and helpful macros.

Part of P0094, funded by Yanga.
2020-05-25 15:18:44 +02:00
nmlgc f6cbff0bf9 [Decompilation] [th01] .GRP file loading and display
All the weird double returns in FUUIN.EXE just magically appear with
-O-! 😮

And yeah, it's a bowl of global state spaghetti once again. 🍝 Named
the functions in a way that would make sense to a user of the API, who
should be aware of typical side effects, like, y'know, a changed
hardware palette… That's how you end up with the supposed "main"
function getting a "_palette_show" suffix.

Completes P0082, funded by Ember2528.
2020-03-13 19:48:38 +01:00
nmlgc 8adbeb76b6 [Decompilation] [th01] .GRP palette fades
It's optimization barrier time again \o/

Part of P0082, funded by Ember2528.
2020-03-13 19:14:32 +01:00
nmlgc 63ed22ba67 [Reverse-engineering] [th01] .GRP palette
Part of P0082, funded by Ember2528.
2020-03-13 19:09:24 +01:00