Commit Graph

7 Commits

Author SHA1 Message Date
nmlgc 6d702988af [Maintenance] Remove `extern "C"` from more areas of code
Covering every input function across all games.

Part of P0278, funded by Yanga.
2024-04-11 23:17:45 +02:00
nmlgc c57992caa9 [Maintenance] [th03/th04/th05] Move resident pointer loading to its own header
Which also highlights that TH05 uses both a master.lib and raw DOS
implementation.

Part of P0265, funded by [Anonymous] and iruleatgames.
2024-02-03 08:59:48 +01:00
nmlgc ad4cd15bb6 [Decompilation] [th04/th05] Main menu: Top-level menu update/render function
Part of P0262, funded by [Anonymous] and Blue Bolt.
2023-11-30 19:37:58 +01:00
nmlgc 050afe83b5 [Decompilation] [th04/th05] Main menu: Top-level menu blitting
We don't really gain anything from pretending that these description
IDs are anything other than raw array indices.

Part of P0262, funded by [Anonymous] and Blue Bolt.
2023-11-30 19:30:31 +01:00
nmlgc dfb48561d6 [Maintenance] [th04] Move MIKO.CFG code into the main menu translation unit
Wait, *what*, the alignment issues even stretch up to those functions?
And since TH05's version of the MIKO.CFG code lies much further down,
we now end up with this horrible #include placement asymmetry between
the two games. At least we now don't need a cross-TU workaround for
TH04's "MIKO.CFG" string either.

Part of P0262, funded by [Anonymous] and Blue Bolt.
2023-11-30 19:30:17 +01:00
nmlgc 86f1f44522 [Maintenance] [th04/th05] #include game start code from a shared source file
Once again, word alignment of a `switch` jump table forces us to put
both the game start and main menu code into the same translation unit,
despite the former being fundamentally different between the two games.
Oh well, this also avoids the need for a cross-TU workaround for the
"main" and "deb" binary filename strings.

Part of P0262, funded by [Anonymous] and Blue Bolt.
2023-11-30 19:22:42 +01:00
nmlgc ae2fc2865a [Decompilation] [th04] Starting the game
Completes P0261, funded by [Anonymous] and Yanga.
2023-11-01 23:17:52 +01:00