Skip to content

Commit

Permalink
remove storage.json stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCorby committed Dec 27, 2022
1 parent 2fb5c1a commit e288b7c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 26 deletions.
7 changes: 0 additions & 7 deletions QSB/Menus/MenuManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ public void Start()
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)
Expand Down
3 changes: 0 additions & 3 deletions QSB/QSB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions QSB/QSBCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -133,7 +132,6 @@ public void Start()
CheckCompatibilityMods();

DebugSettings = Helper.Storage.Load<DebugSettings>("debugsettings.json") ?? new DebugSettings();
Storage = Helper.Storage.Load<Storage>("storage.json") ?? new Storage();

if (DebugSettings.HookDebugLogs)
{
Expand Down
10 changes: 0 additions & 10 deletions QSB/Utility/Storage.cs

This file was deleted.

2 changes: 1 addition & 1 deletion QSB/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
}
3 changes: 0 additions & 3 deletions QSB/storage.json

This file was deleted.

0 comments on commit e288b7c

Please sign in to comment.