Commit Graph

8 Commits

Author SHA1 Message Date
nmlgc 7b6090110f [Maintenance] [th01] Cards: Merge segment 30 code into a single source file
The fact that the game insists on this translation unit is already bad
enough – thanks to the static constructor for the CCards and CObstacles
instances, we can't merge it with segment 31. Just `#include`ing
str_val.cpp here is much less bad than having more than one extra
source file.

Part of P0204, funded by [Anonymous] and Yanga.
2022-07-10 13:45:17 +02:00
nmlgc 3a97e3f846 [Maintenance] [th01] Move integer→string conversions to the `math/` directory
The nondescript nature of `core/` has been annoying me for a while, and
these function kind of are number-related after all.

Part of P0204, funded by [Anonymous] and Yanga.
2022-07-10 13:37:56 +02:00
nmlgc 711af96314 [Maintenance] [th01] Move STAGE?.DAT loading declaration to `stages.hpp`
Removes the dependency on the STAGE?.DAT format from some bosses.

Part of P0203, funded by [Anonymous] and GhostRiderCog.
2022-07-10 13:11:28 +02:00
nmlgc 6f2881f056 [Maintenance] Remove `extern "C"` from more areas of code
The .PTN functions, vector functions, and egc_copy_rect_1_to_0_1()
(finally!) from TH01, as well as playfld.hpp from all games(finally!),
together with a bunch of other functions in their vicinity.

Part of P0201, funded by Ember2528 and Yanga.
2022-06-24 23:28:19 +02:00
nmlgc 36068acb02 [Decompilation] [th01] Stage objects: Card score popup rendering
Part of P0159, funded by Yanga.
2021-09-28 18:05:25 +02:00
nmlgc 4c500599a9 [Decompilation] [th01] Stage objects: Card/Orb collision handling
An X/Y point structure, in my TH01? And another actually logical
hitbox? (Rest of the code's still bad, though.)

Part of P0159, funded by Yanga.
2021-09-28 18:05:25 +02:00
nmlgc 403fbcc37f [Maintenance] Remove `extern "C"` from more areas of decompiled code
Most notably from `th01/core/str_val`, where it's really in the way.
That mistake will haunt me until this all is done, probably…

Part of P0158, funded by Yanga.
2021-09-28 18:05:24 +02:00
nmlgc afd74fb8aa [Decompilation] [th01] 16-bit integer to string conversion
"Hey, let's have separate functions for uint16_t and int16_t… and then
just *not* support negative numbers in the latter" :zunpet:

Part of P0104, funded by Ember2528.
2020-07-27 17:22:16 +02:00