forked from akanyan/mu3-mods
feat(LoadBoost): SkipCamera toggle
This commit is contained in:
@ -12,7 +12,7 @@ public class patch_DataManager: DataManager {
|
|||||||
private void initCache() {
|
private void initCache() {
|
||||||
if(File.Exists(_fileName)) {
|
if(File.Exists(_fileName)) {
|
||||||
System.Console.WriteLine("Loading chart analysis cache...");
|
System.Console.WriteLine("Loading chart analysis cache...");
|
||||||
_fumenAnalysisData = new Dictionary<int, FumenAnalysisData>();
|
_fumenAnalysisData = [];
|
||||||
using FileStream input = File.OpenRead(_fileName);
|
using FileStream input = File.OpenRead(_fileName);
|
||||||
using BinaryReader binaryReader = new BinaryReader(input);
|
using BinaryReader binaryReader = new BinaryReader(input);
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ public class patch_DataManager: DataManager {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_fumenAnalysisData = new Dictionary<int, FumenAnalysisData>();
|
_fumenAnalysisData = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
using MonoMod;
|
||||||
using MU3.SceneObject;
|
using MU3.SceneObject;
|
||||||
|
|
||||||
namespace MU3.Sequence;
|
namespace MU3.Sequence;
|
||||||
@ -5,10 +6,17 @@ namespace MU3.Sequence;
|
|||||||
public class patch_Initialize: Initialize {
|
public class patch_Initialize: Initialize {
|
||||||
private Scene_12_Initialize _initializeObject;
|
private Scene_12_Initialize _initializeObject;
|
||||||
|
|
||||||
private void Execute_InitQRReader() {
|
[MonoModIgnore]
|
||||||
|
private extern void Enter_InitQRReader();
|
||||||
|
|
||||||
|
private void Leave_CheckLever() {
|
||||||
|
using IniFile iniFile = new("mu3.ini");
|
||||||
|
if(iniFile.getValue("Sequence", "SkipCamera", true)) {
|
||||||
|
Enter_InitQRReader();
|
||||||
_initializeObject.setQRCodeReaderStatus("SKIP");
|
_initializeObject.setQRCodeReaderStatus("SKIP");
|
||||||
setNextState(EState.CheckDelivery);
|
setNextState(EState.CheckDelivery);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void Enter_Warning() {
|
private void Enter_Warning() {
|
||||||
setNextState(EState.StateEnd);
|
setNextState(EState.StateEnd);
|
||||||
|
Reference in New Issue
Block a user