Skip to content

Commit

Permalink
Fix oopsies in GeneralData
Browse files Browse the repository at this point in the history
  • Loading branch information
bagusnl committed Oct 28, 2023
1 parent 4eb3192 commit e8aff6e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,17 @@ public static GeneralData Load()
LogWriteLine($"Deserialized Genshin Settings: {_ValueName}\r\n{byteStr
.Deserialize<GeneralData>(GenshinSettingsJSONContext.Default)
.Serialize(GenshinSettingsJSONContext.Default, false, true)}", LogType.Debug, true);
LogWriteLine($"graphicsData dump:\r\n\t{data._graphicsData}");
LogWriteLine($"globalPerfData dump:\r\n\t{data._globalPerfData}");
#endif
#if DEBUG
LogWriteLine($"Loaded Genshin Settings: {_ValueName}", LogType.Debug, true);
#else
LogWriteLine($"Loaded Genshin Settings", LogType.Default, true);
#endif
GeneralData data = byteStr.Deserialize<GeneralData>(GenshinSettingsJSONContext.Default) ?? new GeneralData();
#if DUMPGIJSON
LogWriteLine($"graphicsData dump:\r\n\t{data._graphicsData}");
LogWriteLine($"globalPerfData dump:\r\n\t{data._globalPerfData}");
#endif
data.graphicsData = GraphicsData.Load(data._graphicsData);
data.globalPerfData = new();
return data;
Expand Down

0 comments on commit e8aff6e

Please sign in to comment.