public void StartGame() { if (LauncherLogic.Ready && LauncherLogic.User != null) { //UIPlugin.Instance.Window.WindowState = FormWindowState.Minimized; //RageLauncher.Instance.StartGame("game.homestate.eu", 22005, LauncherLogic.GTAV.Command, LauncherLogic.GTAV.Type); if (LauncherLogic.AltVPath == "") { LauncherLogic.ShowDialog(); } else { if (!System.IO.File.Exists(LauncherLogic.AltVPath)) { LauncherLogic.ShowDialog(); return; } _logger.Info("Stating alt:V " + LauncherLogic.AltVPath); UIPlugin.Instance.Window.WindowState = FormWindowState.Minimized; var p = new Process(); p.StartInfo.WorkingDirectory = LauncherLogic.AltVPath.Replace("altv.exe", ""); p.StartInfo.FileName = "altv.exe"; p.StartInfo.Arguments = "-connecturl altv.homestate.de:80"; p.StartInfo.UseShellExecute = true; p.StartInfo.RedirectStandardOutput = false; p.Start(); } } LauncherLogic.WaitForInject = false; }
public void SetRes(int typ) { var res = (ResolutionMode)typ; LauncherLogic.Config.ResolutionMode = res; LauncherLogic.Config.Save(LauncherLogic.CONFIG_PATH); LauncherLogic.UpdateRes(LauncherLogic.Config.ResolutionMode); }
public void SetAltVPath() { LauncherLogic.ShowDialog(); }