Skip to content

Commit

Permalink
- added command line parameter /background to start extraQL minimized…
Browse files Browse the repository at this point in the history
… (used by SteamServerBrowser when auto-starting extraQL)

- added option to start / quit Steam Server Browser
- fixed the "start minimized" option
- removed option "allow other computers to use this extraQL server" (relic from old hook.js using a public extraQL master server)
- removed option "install scripts to <steam-id>/baseq3/js" (not needed)
- removed https left-overs
  • Loading branch information
PredatH0r committed Nov 13, 2015
1 parent 12ad3c1 commit cd5e8c9
Show file tree
Hide file tree
Showing 8 changed files with 156 additions and 99 deletions.
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ c:\program files (x86)\Steam\SteamApps\workshop\content\282440\539252269
Changelog
=========

Version 2.7
---
- added command line parameter /background to start extraQL minimized (used by SteamServerBrowser when auto-starting extraQL)
- added option to start / quit Steam Server Browser
- fixed the "start minimized" option
- removed option "allow other computers to use this extraQL server" (relic from old hook.js using a public extraQL master server)
- removed option "install scripts to <steam-id>/baseq3/js" (not needed)

Version 2.6
---
- using long living steam API session to prevent massive FPS drops after running the application for a while
Expand Down
30 changes: 3 additions & 27 deletions source/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.IO;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;

namespace ExtraQL
{
Expand All @@ -27,22 +26,21 @@ public void LoadSettings()
{
this.settings.Clear();
this.settings["advanced"] = "0";
this.settings["launcherExe"] = GetDefaultLauncherPath();
this.settings["bindToAll"] = "0";
this.settings["systemTray"] = "0";
this.settings["startMinimized"] = "0";
this.settings["checkUpdates"] = "1";
this.settings["autostart"] = "0";
this.settings["log"] = "0";
this.settings["followLog"] = "0";
this.settings["https"] = "0";
this.settings["logAllRequests"] = "0";
this.settings["autoquit"] = "0";
this.settings["quakelive_steam.exe"] = "";
this.settings["nickQuake"] = "";
this.settings["nickSteam"] = "";
this.settings["skipWorkshopNotice"] = "0";
this.settings["steamAppId"] = "349090";
this.settings["startServerBrowser"] = "0";
this.settings["closeServerBrowser"] = "0";


var configFile = this.ConfigFile;
if (File.Exists(configFile))
Expand Down Expand Up @@ -102,27 +100,5 @@ public void SaveSettings()

#endregion

#region GetDefaultLauncherPath()
private string GetDefaultLauncherPath()
{
try
{
string path = Registry.GetValue(@"HKEY_CURRENT_USER\Software\id Software\Quake Live", null, null) as string;
if (path != null && File.Exists(path += "\\Launcher.exe"))
return path;
}
catch { } // fails on Mono

try
{
string path = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Quake Live", "UninstallString", null) as string;
if (path != null && File.Exists(path = path.Replace("uninstall.exe", "Launcher.exe")))
return path;
}
catch { }
return Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + "\\Quake Live\\Launcher.exe";
}
#endregion

}
}
98 changes: 49 additions & 49 deletions source/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd5e8c9

Please sign in to comment.