1
0
forked from akanyan/mu3-mods

feat(SkipCutscenes): autocontinue

Also fix the "continue?" screen
This commit is contained in:
2025-01-09 23:49:03 +00:00
parent c75fbbc66a
commit ff8bdbdd22
3 changed files with 56 additions and 5 deletions

View File

@ -1,4 +1,5 @@
using MU3.TestMode;
using MU3.Util;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@ -45,6 +46,7 @@ class TestModePageModConfig: TestModePage {
private List<Option> _options;
private Dictionary<string, string> _onOff;
private bool _isDisableGPActive;
private bool _isSkipCutscenesActive;
private MethodInfo _writeToFile;
protected new void Awake() {
@ -62,6 +64,7 @@ class TestModePageModConfig: TestModePage {
{ "ON", "1" }
};
_isDisableGPActive = typeof(UICredit).GetMethod("orig_initialize") != null;
_isSkipCutscenesActive = typeof(Notes.NotesManager).GetMethod("orig_reset") != null;
_writeToFile = typeof(IniFile).GetMethod("writeToFile", BindingFlags.Instance | BindingFlags.NonPublic);
writeOtherOptions();
@ -127,7 +130,16 @@ class TestModePageModConfig: TestModePage {
"QuickStart",
_onOff,
0,
typeof(Notes.NotesManager).GetMethod("orig_reset") != null,
_isSkipCutscenesActive,
"Sequence"
));
_options.Add(new Option(
"AUTOCONTINUE",
"AutoContinue",
_onOff,
0,
_isSkipCutscenesActive,
"Sequence"
));