Skip to content

Commit

Permalink
AAAAAAH
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Dec 20, 2021
1 parent 90e6eb2 commit cd8f1c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions SS14.Launcher/Models/Data/DataManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ private void LoadJsonConfig()
var path = GetCfgJsonPath();

using var changeSuppress = SuppressChangeNotifications();
if (!File.Exists(path))
return;

var text = File.ReadAllText(path);
var data = JsonConvert.DeserializeObject<JsonData>(text)!;

Expand Down
3 changes: 1 addition & 2 deletions SS14.Launcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static void Main(string[] args)
Log.Logger = logCfg.CreateLogger();

VcRedistCheck.Check();
LauncherPaths.CreateDirs();

var cfg = new DataManager();
cfg.Load();
Expand All @@ -82,8 +83,6 @@ public static void Main(string[] args)
http.DefaultRequestHeaders.Add("SS14-Launcher-Fingerprint", cfg.Fingerprint.ToString());
Locator.CurrentMutable.RegisterConstant(http);

LauncherPaths.CreateDirs();

if (cfg.GetCVar(CVars.LogLauncher))
{
Log.Logger = new LoggerConfiguration()
Expand Down

0 comments on commit cd8f1c6

Please sign in to comment.