forked from akanyan/mu3-mods
feat: implement Pause, better InfiniteGP
This commit is contained in:
18
Pause/MU3.Sound/patch_SoundPlayer.cs
Normal file
18
Pause/MU3.Sound/patch_SoundPlayer.cs
Normal file
@ -0,0 +1,18 @@
|
||||
#pragma warning disable CS0626
|
||||
#pragma warning disable CS0649
|
||||
|
||||
namespace MU3.Sound;
|
||||
|
||||
class patch_SoundPlayer: SoundPlayer {
|
||||
private CriAtomExPlayer _player;
|
||||
public extern void orig_stop();
|
||||
|
||||
public void pause(bool val) {
|
||||
_player.Pause(val);
|
||||
}
|
||||
|
||||
public new void stop() {
|
||||
_player.Pause(false);
|
||||
orig_stop();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user