forked from akanyan/mu3-mods
14 lines
514 B
C#
14 lines
514 B
C#
using MU3.Sound;
|
|
using MU3.Util;
|
|
|
|
namespace MU3.Game;
|
|
|
|
class patch_GameBGM: GameBGM {
|
|
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(!Singleton<Mod.State>.instance.WithholdPlay) {
|
|
orig_playBGM(acbData, soundId, selectorID, forcePlay);
|
|
}
|
|
}
|
|
} |