forked from akanyan/mu3-mods
feat(SkipCutscenes): autocontinue
Also fix the "continue?" screen
This commit is contained in:
@ -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"
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user