ReC98/th02
nmlgc c85f444b07 [Decompilation] [th02/th03] Sound effect playback
Second previously undecompilable translation unit, second creative
workaround for the workaround. We can't compile snd_se_play() with -WX,
as that function needs a stack frame, and it's also illegal to disable
-WX in the middle of a translation unit. But since we only need word
alignment in front of snd_se_reset() *and* that function is identical
in all 4 games, it makes sense to move it to its own translation unit.

And then you notice that the TH02/TH03 and TH04/TH05 versions of the
other two functions are basically identical. The small differences can
easily be moved out to inline functions, leaving us with a single
implementation file for all 4 games. Nice!

Part of P0137, funded by [Anonymous].
2021-04-03 22:11:45 +02:00
..
core [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
formats [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
gaiji [Maintenance] [th03/th04/th05] Declare the symbol gaiji inherited from TH02 2020-09-12 11:29:20 +02:00
hardware [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
hiscore [Position independence] [th04/th05] Remaining references to the name alphabet 2020-09-12 11:29:35 +02:00
main [Reverse-engineering] [th02/th04/th05] HUD: Bar colors 2020-08-28 16:21:13 +02:00
math [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
music [Maintenance] Compile all VRAM-accessing translation units as C++ 2020-08-12 16:16:09 +02:00
op [Maintenance] [th02] Move HUUHI.DAT declarations to their own file 2021-01-30 19:20:08 +01:00
snd [Decompilation] [th02/th03] Sound effect playback 2021-04-03 22:11:45 +02:00
sprites [Build] Convert all known hardcoded sprites during the 32-bit build part 2020-07-09 22:28:15 +02:00
strings
exit.asm [Maintenance] Declare game_exit() and game_exit_to_dos() as __cdecl 2020-09-07 21:18:40 +02:00
exit.c [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
exit_dos.asm [Maintenance] Declare game_exit() and game_exit_to_dos() as __cdecl 2020-09-07 21:18:40 +02:00
exit_dos.c [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
frmdely1.c [Separate translation units] [th02] frame_delay() 2021-01-05 19:23:31 +01:00
frmdely2.c [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
grp_rect.cpp [Separate translation units] [th02] Unaccelerated page 1→0 rectangle blitting 2021-01-05 19:55:42 +01:00
grppsafx.cpp [Decompilation] [th03] graph_putsa_fx() 2021-01-05 22:08:56 +01:00
initmain.cpp [Separate translation units] [th02/th03/th05] game_init_main() 2021-01-30 19:50:32 +01:00
initop.cpp [Separate translation units] [th02/th03/th05] game_init_op() 2021-01-31 16:53:59 +01:00
input_s.cpp [Separate translation units] [th02] input_sense() 2021-03-20 02:36:43 +01:00
main02_1.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
main_03.cpp [Maintenance] Move all features exclusive to MAIN.EXE to a main/ subdirectory 2020-04-15 20:58:01 +02:00
maine021.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
maine022.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
maine_03.c [Maintenance] Avoid MK_FP() where possible 2021-02-20 15:47:00 +01:00
maine_04.cpp [Maintenance] Complete the master.hpp transition 2021-01-30 19:22:29 +01:00
maine_05.cpp [Maintenance] Copy <dos.h>'s 16-bit x86 Real Mode declarations to a new file 2021-02-20 23:49:45 +01:00
mem.h
mem.inc
mptn_i.cpp [Separate translation units] [th02] .MPTN: Inner load functions 2021-01-30 19:53:00 +01:00
op_01.cpp [Maintenance] Copy <dos.h>'s 16-bit x86 Real Mode declarations to a new file 2021-02-20 23:49:45 +01:00
op_02_1.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
op_02_3.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
op_03.cpp [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00
op_04.cpp [Maintenance] Complete the master.hpp transition 2021-01-30 19:22:29 +01:00
op_05.cpp [Maintenance] Copy <dos.h>'s 16-bit x86 Real Mode declarations to a new file 2021-02-20 23:49:45 +01:00
op_06.cpp [Maintenance] Move the number of VRAM planes to pc98.h 2021-03-19 19:29:17 +01:00
pi_load.cpp [Separate translation units] [th02/th03/th04] pi_load() 2021-01-05 20:01:44 +01:00
pi_put.cpp [Separate translation units] [th02] .PI blitting 2021-01-05 19:34:59 +01:00
res_init.cpp [Maintenance] Use the C++ resdata_*() wrappers in all ZUN.COM sub-binaries 2021-02-20 15:46:48 +01:00
resident.hpp [Maintenance] [th02] Move the resident structure declaration to its own file 2021-01-30 18:53:07 +01:00
score.c [Position independence] [th04/th05] Remaining references to the name alphabet 2020-09-12 11:29:35 +02:00
score.h
score.inc
scoreenc.c
scorelod.c
snd_dlym.cpp [Separate translation units] [th02] snd_delay_until_measure() 2021-01-05 19:32:18 +01:00
snd_dlyv.c [Separate translation units] [th02] snd_delay_until_volume() 2021-01-31 15:14:55 +01:00
snd_kaja.c [Separate translation units] [th02] snd_kaja_interrupt() 2021-01-05 19:33:37 +01:00
snd_load.c [Separate translation units] [th02] snd_load() 2021-01-30 19:57:28 +01:00
snd_mmdr.c [Decompilation] [th02] snd_mmd_resident() 2021-04-03 22:10:41 +02:00
snd_mode.c [Separate translation units] [th02] snd_determine_mode() 2021-01-31 15:18:09 +01:00
snd_pmdr.c [Separate translation units] [th02] snd_pmd_resident() 2021-01-31 15:18:06 +01:00
snd_se.cpp [Decompilation] [th02/th03] Sound effect playback 2021-04-03 22:11:45 +02:00
snd_se_r.cpp [Decompilation] [th02/th03] Sound effect playback 2021-04-03 22:11:45 +02:00
th02.h [Separate translation units] [th02] game_exit() 2021-01-31 16:53:55 +01:00
th02.inc [Position independence] [th02/th03/th04/th05] References to known gaiji 2020-08-19 20:12:02 +02:00
vector.cpp [Separate translation units] [th02] 2D vector functions 2021-01-05 19:51:41 +01:00
zun_res1.cpp [Maintenance] Use the C++ resdata_*() wrappers in all ZUN.COM sub-binaries 2021-02-20 15:46:48 +01:00
zun_res2.c [Maintenance] Complete the master.hpp transition 2021-01-30 19:22:29 +01:00
zun_res3.c [Maintenance] Complete the master.hpp transition 2021-01-30 19:22:29 +01:00
zunerror.c [Maintenance] Prefer the -zC and -zP options over `#pragma codeseg` 2021-04-03 20:12:09 +02:00