1
0
forked from akanyan/mu3-mods

fix(SelectBGM): scoreboard bgm

This commit is contained in:
2025-01-04 02:36:33 +00:00
parent 1f01b460ba
commit 3b75874ef3
5 changed files with 40 additions and 12 deletions

View File

@ -1,13 +1,13 @@
using MU3.Sound;
using MU3.Util;
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) {
if(!Singleton<Mod.State>.instance.WithholdPlay) {
orig_playBGM(acbData, soundId, selectorID, forcePlay);
}
}