diff --git a/QSB/Menus/MenuManager.cs b/QSB/Menus/MenuManager.cs index 7a17e9bd..2ef9e33b 100644 --- a/QSB/Menus/MenuManager.cs +++ b/QSB/Menus/MenuManager.cs @@ -64,13 +64,6 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart QSBNetworkManager.singleton.OnClientConnected += OnConnected; QSBNetworkManager.singleton.OnClientDisconnected += OnDisconnected; - if (QSBCore.Storage.LastUsedVersion != QSBCore.QSBVersion) - { - // recently updated! - QSBCore.Storage.LastUsedVersion = QSBCore.QSBVersion; - QSBCore.Helper.Storage.Save(QSBCore.Storage, "storage.json"); - } - QSBLocalization.LanguageChanged += OnLanguageChanged; if (QSBCore.DebugSettings.AutoStart) diff --git a/QSB/QSB.csproj b/QSB/QSB.csproj index 177373de..ce0be58c 100644 --- a/QSB/QSB.csproj +++ b/QSB/QSB.csproj @@ -38,9 +38,6 @@ PreserveNewest - - PreserveNewest - PreserveNewest diff --git a/QSB/QSBCore.cs b/QSB/QSBCore.cs index 538d0a39..ac00caf9 100644 --- a/QSB/QSBCore.cs +++ b/QSB/QSBCore.cs @@ -67,7 +67,6 @@ public class QSBCore : ModBehaviour : QSBMSStoreProfileManager.SharedInstance; public static IMenuAPI MenuApi { get; private set; } public static DebugSettings DebugSettings { get; private set; } = new(); - public static Storage Storage { get; private set; } = new(); public const string NEW_HORIZONS = "xen.NewHorizons"; public const string NEW_HORIZONS_COMPAT = "xen.NHQSBCompat"; @@ -133,7 +132,6 @@ public class QSBCore : ModBehaviour CheckCompatibilityMods(); DebugSettings = Helper.Storage.Load("debugsettings.json") ?? new DebugSettings(); - Storage = Helper.Storage.Load("storage.json") ?? new Storage(); if (DebugSettings.HookDebugLogs) { diff --git a/QSB/Utility/Storage.cs b/QSB/Utility/Storage.cs deleted file mode 100644 index f67d0580..00000000 --- a/QSB/Utility/Storage.cs +++ /dev/null @@ -1,10 +0,0 @@ -using Newtonsoft.Json; - -namespace QSB.Utility; - -[JsonObject(MemberSerialization.OptIn)] -public class Storage -{ - [JsonProperty("lastUsedVersion")] - public string LastUsedVersion; -} diff --git a/QSB/manifest.json b/QSB/manifest.json index d78fe58b..75f13053 100644 --- a/QSB/manifest.json +++ b/QSB/manifest.json @@ -10,5 +10,5 @@ "version": "0.23.0", "owmlVersion": "2.8.0", "dependencies": [ "_nebula.MenuFramework", "JohnCorby.VanillaFix" ], - "pathsToPreserve": [ "debugsettings.json", "storage.json" ] + "pathsToPreserve": [ "debugsettings.json" ] } diff --git a/QSB/storage.json b/QSB/storage.json deleted file mode 100644 index 8d9571ae..00000000 --- a/QSB/storage.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "lastUsedVersion": "" -} \ No newline at end of file