public LauncherPage() { InitializeComponent(); if (LocCulture == "ar") { VTCGrid.FlowDirection = DTCGrid.FlowDirection = PSGrid.FlowDirection = FlowDirection.RightToLeft; } GamePath.SetPath(Game.Path); DisableUpdChecks.IsChecked = Settings.DisableUpdChecks; CloseOnGameRun.IsChecked = Settings.CloseOnGameRun; SSLFix.IsChecked = Settings.SSLFix; DowngradeMode.IsChecked = Settings.DowngradeMode; Communism.IsChecked = Settings.CommunismMode; }
private void ChangeGamePath(object Sender, RoutedEventArgs Args) { if (FileExists($@"{GamePath.Text}\ShooterGame\Binaries\Win64\ShooterGame.exe")) { if (ShowOptions("Warning", LocString(LocCode.GamePathPrompt))) { ARKPath = GamePath.Text; Current.Shutdown(); } else { GamePath.SetPath(Game.Path); } } else { Show("Warning", LocString(LocCode.CantUsePath)); GamePath.SetPath(Game.Path); } }