Commit Graph

14 Commits

Author SHA1 Message Date
nmlgc 1e41fa0617 [Maintenance] Remove redundant `#include`s
Part of P0285, funded by [Anonymous] and iruleatgames.
2024-07-09 08:46:51 +02:00
nmlgc b61e612fdf [Maintenance] #include each header's dependencies within the header itself
OK, this is the big one. We still keep using `#include` guards only
where we absolutely need to, but with each header now being valid in
isolation, this can now actually help *minimize* the length of each
translation unit's `#include` list. Turns out that after removing all
the duplicates, we only *actually* need to guard 29 headers across all
5 games.

Part of P0285, funded by [Anonymous] and iruleatgames.
2024-07-09 08:46:42 +02:00
nmlgc e353800f46 [Maintenance] Hidden #include dependency removal: TH04
Part of P0284, funded by [Anonymous] and Blue Bolt.
2024-07-09 08:42:24 +02:00
nmlgc ab41c89327 [Maintenance] Hidden #include dependency removal: kaja.h
Part of P0284, funded by [Anonymous] and Blue Bolt.
2024-07-09 08:42:06 +02:00
nmlgc 4ad62ce9d9 [Maintenance] [th04/th05] Dialog: Merge `shared.hpp` into `shared.cpp`
This is the only place where it was #included.

Part of P0284, funded by [Anonymous] and Blue Bolt.
2024-07-09 08:41:58 +02:00
nmlgc 63e9257279 [Decompilation] [th04/th05] Dialog: Blocking main function
Part of P0259, funded by Splashman and Yanga.
2023-11-01 23:17:51 +01:00
nmlgc e8a0b3ef43 [Decompilation] [th04/th05] Dialog: Box fade-in animation
Completes P0258, funded by [Anonymous] and Blue Bolt.
2023-10-31 22:34:22 +01:00
nmlgc 3968f36820 [Decompilation] [th05] Dialog: Box clearing
Part of P0258, funded by [Anonymous] and Blue Bolt.
2023-10-31 22:34:16 +01:00
nmlgc a06996af3e [Decompilation] [th04/th05] Dialog: Face unblitting
Part of P0258, funded by [Anonymous] and Blue Bolt.
2023-10-31 22:34:12 +01:00
nmlgc 36166192bd [Decompilation] [th04/th05] Dialog: EGC-powered playfield front→back copy
Part of P0258, funded by [Anonymous] and Blue Bolt.
2023-10-31 22:34:01 +01:00
nmlgc 35d6fe30c3 [Decompilation] [th04/th05] Dialog: Box background rendering
Part of P0258, funded by [Anonymous] and Blue Bolt.
2023-10-31 22:33:58 +01:00
nmlgc 78a9e7b4b4 [Decompilation] [th04/th05] Dialog: Activation
Stupid one-off functions deserve stupid names, Part 6.

Part of P0258, funded by [Anonymous] and Blue Bolt.
2023-10-31 22:33:54 +01:00
nmlgc 4d11848671 [Naming] [th04/th05] Dialog: Drop the `DIALOG_` prefix from constants
It's rather noisy, the header isn't supposed to be publicly used
anyway, and the TH03/TH04/TH05 cutscene system uses the same
conventions. Also shortening the `CURSOR_` constants to `TEXT_`.

Part of P0258, funded by [Anonymous] and Blue Bolt.
2023-10-31 22:33:32 +01:00
nmlgc 641cdec9f2 [Maintenance] [th04/th05] Dialog: Start a new translation unit with shared code
Thanks to the required word alignment of the `switch` jump table in
TH05's dialog_op(), we do in fact have to slice dialog code into
exactly two* translation units. Three might have been better because we
would have only needed to compile this shared code once, but TH05 also
has one exclusive function in the area covered by this new shared
translation unit anyway. At least we can meaningfully share the actual
source files between games here.

* With an additional one at the end for now, because I absolutely had
  to RE that EMS code in late 2021, but we'll catch up with that one in
  the end.

Part of P0258, funded by [Anonymous] and Blue Bolt.
2023-10-31 22:33:29 +01:00