File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,21 @@ public class LoreTrackerStorageData
12
12
13
13
public static class LoreTrackerStorage
14
14
{
15
- private const string SaveFileName = "LoreTrackerData.json" ;
15
+ private const string SaveFileName = "LoreTrackerData.owsave" ;
16
+ private const string OldSaveFileName = "LoreTrackerData.json" ;
16
17
17
18
private static LoreTrackerStorageData _data ;
18
19
private static string CurrentProfile => StandaloneProfileManager . SharedInstance . currentProfile . profileName ;
19
20
20
21
private static string SaveFilePath =>
21
22
Path . Combine ( StandaloneProfileManager . SharedInstance . _profilesPath , CurrentProfile , SaveFileName ) ;
23
+ private static string OldSaveFilePath =>
24
+ Path . Combine ( StandaloneProfileManager . SharedInstance . _profilesPath , CurrentProfile , OldSaveFileName ) ;
22
25
23
26
public static void Load ( )
24
27
{
25
28
_data = JsonHelper . LoadJsonObject < LoreTrackerStorageData > ( SaveFilePath )
29
+ ?? JsonHelper . LoadJsonObject < LoreTrackerStorageData > ( OldSaveFilePath )
26
30
?? new LoreTrackerStorageData ( ) ;
27
31
LoreTracker . I . ModHelper . Console . WriteLine ( "Loaded LoreTracker data" , MessageType . Success ) ;
28
32
}
You can’t perform that action at this time.
0 commit comments