mu3-mods/SkipPreMusicRitual/MU3.Sequence/patch_PlayMusic.cs

20 lines
625 B
C#
Raw Permalink Normal View History

using MU3.Battle;
using MU3.Util;
namespace MU3.Sequence;
2024-07-04 12:39:11 +00:00
class patch_PlayMusic: PlayMusic {
private GameEngine _gameEngine;
private extern void orig_Execute_StartCutscene();
public static bool ForceSkipped { get; private set; }
private void Execute_StartCutscene() {
orig_Execute_StartCutscene();
ForceSkipped = false;
if(Singleton<Sys.System>.instance.config.isQuickStart || Singleton<UIInput>.instance.getTriggerOn(UIInput.Key.MenuLeft)) {
2024-07-11 23:14:06 +00:00
ForceSkipped = true;
_gameEngine.skipStartCutscene();
setNextState(EState.Countdown);
}
}
}