mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 03:28:26 +00:00
remove storage.json stuff
This commit is contained in:
parent
2fb5c1a605
commit
e288b7c633
@ -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)
|
||||
|
@ -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>
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -1,10 +0,0 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace QSB.Utility;
|
||||
|
||||
[JsonObject(MemberSerialization.OptIn)]
|
||||
public class Storage
|
||||
{
|
||||
[JsonProperty("lastUsedVersion")]
|
||||
public string LastUsedVersion;
|
||||
}
|
@ -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" ]
|
||||
}
|
||||
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"lastUsedVersion": ""
|
||||
}
|
Loading…
Reference in New Issue
Block a user