Skip to content

Commit

Permalink
Fix 3.3 pause.c
Browse files Browse the repository at this point in the history
  • Loading branch information
sozud committed Mar 2, 2024
1 parent f5f2abc commit 6c602dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def add_lib_263(srcs, output_dir, lib_name, flags, folder):
def build_33():
snd_srcs = [
'src/snd/next.c',
# 'src/snd/pause.c',
'src/snd/pause.c',
# 'src/snd/play.c',
# 'src/snd/replay.c',
'src/snd/scsmvol.c',
Expand Down
22 changes: 8 additions & 14 deletions src/snd/pause.c
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
#include "libsnd_i.h"

#if VERSION == 33
void Snd_nextpause(s16 arg0, s16 arg1) {
_ss_score[arg0][arg1].unk2b = 0;
_ss_score[arg0][arg1].unk90 &= ~0x100;
}
#endif

#if VERSION == 33
void Snd_pause(s16 arg0, s16 arg1) {
struct SeqStruct* temp_s2;
temp_s2 = &_ss_score[arg0][arg1];
SpuVmSeqKeyOff(arg1 << 8 | arg0);
temp_s2->unk2b = 0;
_ss_score[arg0][arg1].unk90 &= ~2;
}
#else
void _SsSndPause(s16 arg0, s16 arg1) {
#endif
struct SeqStruct* temp_s2;
temp_s2 = &_ss_score[arg0][arg1];
SpuVmSeqKeyOff(arg1 << 8 | arg0);
temp_s2->unk2b = 0;
_ss_score[arg0][arg1].unk90 &= ~2;
}
#endif

#if VERSION == 33
void Snd_nextpause(s16 arg0, s16 arg1) {
_ss_score[arg0][arg1].unk2b = 0;
_ss_score[arg0][arg1].unk90 &= ~0x100;
}
#endif

0 comments on commit 6c602dd

Please sign in to comment.