mirror of https://github.com/nmlgc/ReC98.git
![]() 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]. |
||
---|---|---|
.. | ||
delaymea.asm | ||
delaymea.cpp | ||
se_priority[data].asm | ||
se_state[data].asm | ||
snd.h |