Esempio n. 1
0
        private void InitializeLauncher()
        {
            launcherConfig = JsonHandler.LoadLauncherConfig();
            monitor        = new ProcessMonitor("EscapeFromTarkov", 1000, aliveCallback: null, exitCallback: GameExitCallback);
            serverManager  = new ServerManager();
            accountManager = new Account(launcherConfig);
            gameStarter    = new GameStarter();

            if (launcherConfig.Servers.Count == 0)
            {
                launcherConfig.Servers.Add("https://127.0.0.1");
                JsonHandler.SaveLauncherConfig(launcherConfig);
            }

            ShowServerSelectView();
        }
Esempio n. 2
0
 public Account(LauncherConfig launcherConfig)
 {
     this.launcherConfig = launcherConfig;
     SelectedAccount     = null;
 }
Esempio n. 3
0
 public static void SaveLauncherConfig(LauncherConfig data)
 {
     Json.Save(Path.Combine(filepath, launcherConfig), data);
 }