14 lines
513 B
C#
14 lines
513 B
C#
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);
|
|
}
|
|
}
|
|
} |