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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user