1
0
forked from akanyan/mu3-mods

fix: misc cleanup

Also set HideVersion default to false
Also fix the new skipper crashing on tutorial
This commit is contained in:
2024-12-21 13:55:36 +00:00
parent adb7955875
commit 25ca07edd6
28 changed files with 59 additions and 70 deletions

View File

@ -9,8 +9,6 @@ public class patch_DataStudioManager: DataStudioManager {
private static string _fileName;
private static Dictionary<string, object> _dataCache;
private static extern bool orig_Deserialize<T>(string filePath, out T dsr) where T : new();
private static void initCache() {
using IniFile iniFile = new("mu3.ini");
var dir = iniFile.getValue("Extra", "CacheDir", ".");
@ -37,6 +35,7 @@ public class patch_DataStudioManager: DataStudioManager {
new BinaryFormatter().Serialize(serializationStream, _dataCache);
}
private static extern bool orig_Deserialize<T>(string filePath, out T dsr) where T : new();
private static bool Deserialize<T>(string filePath, out T dsr) where T : new() {
if(_dataCache == null) {
initCache();
@ -54,7 +53,6 @@ public class patch_DataStudioManager: DataStudioManager {
}
public extern bool orig_IsLoaded();
public new bool IsLoaded() {
if(orig_IsLoaded()) {
if(needSave) {