remove storage.json stuff

This commit is contained in:
JohnCorby 2022-12-27 12:29:07 -08:00
parent 2fb5c1a605
commit e288b7c633
6 changed files with 1 additions and 26 deletions

View File

@ -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)

View File

@ -38,9 +38,6 @@
<None Include="manifest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="storage.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Assets\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>

View File

@ -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>("debugsettings.json") ?? new DebugSettings();
Storage = Helper.Storage.Load<Storage>("storage.json") ?? new Storage();
if (DebugSettings.HookDebugLogs)
{

View File

@ -1,10 +0,0 @@
using Newtonsoft.Json;
namespace QSB.Utility;
[JsonObject(MemberSerialization.OptIn)]
public class Storage
{
[JsonProperty("lastUsedVersion")]
public string LastUsedVersion;
}

View File

@ -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" ]
}

View File

@ -1,3 +0,0 @@
{
"lastUsedVersion": ""
}