1
0
forked from akanyan/mu3-mods

feat: implement SelectBGM

This commit is contained in:
2024-07-30 02:22:25 +09:00
parent 920d2386d5
commit 07ee892b43
6 changed files with 88 additions and 1 deletions

View File

@ -0,0 +1,14 @@
using MU3.Sound;
namespace MU3.Game;
class patch_GameBGM: GameBGM {
public static bool WithholdPlay = false;
public extern void orig_playBGM(SoundManager.ACBData acbData, int soundId, int selectorID, bool forcePlay = false);
public new void playBGM(SoundManager.ACBData acbData, int soundId, int selectorID, bool forcePlay = false) {
// Prevents theme music from being restarted
if(!WithholdPlay) {
orig_playBGM(acbData, soundId, selectorID, forcePlay);
}
}
}