Commit Graph

17 Commits

Author SHA1 Message Date
nmlgc 062aa7ae1d [Maintenance] Purge the C-style `typedef struct` syntax
I might change this convention again in the future, particularly once
someone wants to fund C89 conformance, but let's stay consistent for
now.

Part of P0264, funded by [Anonymous] and Blue Bolt.
2024-02-02 23:59:34 +01:00
nmlgc 26926080bc [Maintenance] Remove `extern "C"` from more areas of code
This commit covers
• TH02/TH03/TH04/TH05's frame_delay() and frame_delay_2() (finally!)
• TH02/TH03/TH04/TH05's game_init_main()
• TH02's graph_copy_rect_1_to_0_16()
• TH03/TH04/TH05's cfg_load_resident_ptr()
• TH05's piano_setup_and_put_initial() and piano_render()

Part of P0264, funded by [Anonymous] and Blue Bolt.
2024-02-02 23:59:34 +01:00
nmlgc 08fa2151ca [Maintenance] Make the locked condition handler macro publicly available
I've been thinking about a new directory for any core cross-platform
code that these game typically need. These range from stuff like the
hardware-independent pixel_t types (you shouldn't need to #include a
file named "pc98.h" for those), to stuff like this. "logic" might have
been a good directory name, but does it encompass rendering as well?
So, it'll just be "game" for now. 😶

Part of P0216, funded by JonathKane.
2022-08-16 01:39:29 +02:00
nmlgc 60a7e44b53 [Maintenance] Introduce proper Shift-JIS and JIS X 0208 types
Much more semantic than that twobyte_t abomination.

Part of P0212, funded by GhostRiderCog, Lmocinemod, and LeyDud.
2022-08-11 15:53:13 +02:00
nmlgc a2358bef47 [Maintenance] Remove `extern "C"` from `x86real.h` and `decomp.hpp`
One of those per delivery now, eh?

Part of P0189, funded by Arandui and Lmocinemod.
2022-04-16 23:53:46 +02:00
nmlgc 27f901c48d [Decompilation] [th03] High score menu: Name entering loop
Not jank-free by far, but thankfully much better than TH01's.

Completes P0173, funded by [Anonymous].
2021-12-27 18:38:32 +01:00
nmlgc 1465731780 [Decompilation] [th03] High score menu: High-level row rendering functions
Part of P0173, funded by [Anonymous].
2021-12-27 18:38:32 +01:00
nmlgc d452fc0f3d [Decompilation] [th03] High score menu: Rendering a single row
Oh, so the high score name is only stored backwards for aesthetic
reasons, to make both the name and score blitting loops look identical.

Part of P0173, funded by [Anonymous].
2021-12-27 18:38:32 +01:00
nmlgc a823bec801 [Decompilation] [th03] High score menu: REGI*.BFT glyph blitting
Part of P0173, funded by [Anonymous].
2021-12-27 18:38:32 +01:00
nmlgc ace067fd07 [Decompilation] [th03] High score menu: REGI*.BFT glyph unblitting
What's a EGC?

Part of P0173, funded by [Anonymous].
2021-12-27 03:59:33 +01:00
nmlgc bb4a9d7301 [Decompilation] [th03] High score menu: Alphabet ID → screen space transform
Nice, ZUN learned something from TH01's terrible high score menu code!

Part of P0173, funded by [Anonymous].
2021-12-27 03:59:33 +01:00
nmlgc 1658c0acd3 [Decompilation] [th03] High score menu: Initial alphabet rendering
Part of P0173, funded by [Anonymous].
2021-12-27 03:59:33 +01:00
nmlgc 8750e9e079 [Decompilation] [th03] High score menu: Making room for a new high score
Yup, that 10th score digit stored for every place is in fact unused.

Part of P0173, funded by [Anonymous].
2021-12-27 03:59:33 +01:00
nmlgc da3617a219 [Decompilation] [th03] High score menu: Loading and background blitting
Part of P0173, funded by [Anonymous].
2021-12-27 03:59:33 +01:00
nmlgc 2d5491e4a9 [Decompilation] [th03] YUME.NEM: Loading
"I don't need the return value in MAINL.EXE? Let's copy-paste the
function and remove all of its `return` statements then!" :zunpet:

Completes P0172, funded by [Anonymous] and Blue Bolt.
2021-12-27 03:59:33 +01:00
nmlgc 6d5918881f [Decompilation] [th03] YUME.NEM: Encryption and saving
Also "intransparently setting the clear flag, but only in the MAINL.EXE
version".

Part of P0172, funded by [Anonymous] and Blue Bolt.
2021-12-27 03:59:30 +01:00
nmlgc d973380a9c [Reverse-engineering] [th03/th04/th05] High score menu: Entered place
Part of P0116, funded by [Anonymous] and Lmocinemod.
2020-09-12 11:29:09 +02:00