This website requires JavaScript.
Explore
Help
Register
Sign In
Rooba
/
ReC98
mirror of
https://github.com/nmlgc/ReC98.git
Watch
1
Star
1
Fork
You've already forked ReC98
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
753f73f5f2
ReC98
/
th04
/
snd_se.cpp
3 lines
53 B
C++
Raw
Normal View
History
Unescape
Escape
[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-03-25 16:09:57 +00:00
#
pragma option -zCSHARED_
#
include
"th02/snd/se.cpp"