Skip to content

Commit

Permalink
iCutscene: enable match (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
escape209 authored Oct 9, 2024
1 parent 0ec3eb6 commit fb4dd6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def Rel(lib_name: str, objects: List[Object]) -> Dict[str, Any]:
Object(NonMatching, "SB/Game/zTalkBox.cpp"),
Object(NonMatching, "SB/Game/zTextBox.cpp"),
Object(NonMatching, "SB/Game/zTaskBox.cpp"),
Object(NonMatching, "SB/Core/gc/iCutscene.cpp"),
Object(Matching, "SB/Core/gc/iCutscene.cpp"),
Object(Matching, "SB/Game/zNPCTypeTest.cpp"),
Object(NonMatching, "SB/Game/zNPCTypeSubBoss.cpp"),
Object(NonMatching, "SB/Game/zNPCTypeBoss.cpp"),
Expand Down
16 changes: 6 additions & 10 deletions src/SB/Core/gc/iCutscene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@

U32 read_sizzze = 0;

extern F32 _835_1;
extern F32 _836_1;
extern F32 _837_4;

void iCSSoundSetup(xCutscene* csn)
{
xCutsceneData* data;
Expand Down Expand Up @@ -316,17 +312,17 @@ S32 iCSLoadStep(xCutscene* csn)
{
// Stereo

csn->SndHandle[0] = xSndPlay(csn->SndAssetID[0], _835_1, _836_1, 255, 0x200, 0,
SND_CAT_CUTSCENE, _837_4);
csn->SndHandle[1] = xSndPlay(csn->SndAssetID[1], _835_1, _836_1, 255, 0x200, 0,
SND_CAT_CUTSCENE, _837_4);
csn->SndHandle[0] = xSndPlay(csn->SndAssetID[0], 0.9f, -99999.0f, 255, 0x200, 0,
SND_CAT_CUTSCENE, 0.0f);
csn->SndHandle[1] = xSndPlay(csn->SndAssetID[1], 0.9f, -99999.0f, 255, 0x200, 0,
SND_CAT_CUTSCENE, 0.0f);
}
else
{
// Mono

csn->SndHandle[0] = xSndPlay(csn->SndAssetID[0], _835_1, _836_1, 255, 0x200, 0,
SND_CAT_CUTSCENE, _837_4);
csn->SndHandle[0] = xSndPlay(csn->SndAssetID[0], 0.9f, -99999.0f, 255, 0x200, 0,
SND_CAT_CUTSCENE, 0.0f);
csn->SndHandle[1] = 0;
}
}
Expand Down

0 comments on commit fb4dd6e

Please sign in to comment.