Skip to content

Commit 657fec0

Browse files
authored
🔀 Merge pull request #2 from TripleWhy/master
Steam Cloud Fix
2 parents 9a4a073 + 2bd8350 commit 657fec0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

LoreTracker/LoreTrackerStorage.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@ public class LoreTrackerStorageData
1212

1313
public static class LoreTrackerStorage
1414
{
15-
private const string SaveFileName = "LoreTrackerData.json";
15+
private const string SaveFileName = "LoreTrackerData.owsave";
16+
private const string OldSaveFileName = "LoreTrackerData.json";
1617

1718
private static LoreTrackerStorageData _data;
1819
private static string CurrentProfile => StandaloneProfileManager.SharedInstance.currentProfile.profileName;
1920

2021
private static string SaveFilePath =>
2122
Path.Combine(StandaloneProfileManager.SharedInstance._profilesPath, CurrentProfile, SaveFileName);
23+
private static string OldSaveFilePath =>
24+
Path.Combine(StandaloneProfileManager.SharedInstance._profilesPath, CurrentProfile, OldSaveFileName);
2225

2326
public static void Load()
2427
{
2528
_data = JsonHelper.LoadJsonObject<LoreTrackerStorageData>(SaveFilePath)
29+
?? JsonHelper.LoadJsonObject<LoreTrackerStorageData>(OldSaveFilePath)
2630
?? new LoreTrackerStorageData();
2731
LoreTracker.I.ModHelper.Console.WriteLine("Loaded LoreTracker data", MessageType.Success);
2832
}

0 commit comments

Comments
 (0)