BEERLEAGUE Launcher v1.1.5 GUI Auto-Connect
=========================================

Handles links like:
  beerleague://connect?game=csgo&server=15.204.112.8:27015


What changed from v1.1.4
------------------------
- Cleaned the PowerShell script so it no longer contains stray literal backslash-n text that caused red startup errors.
- Uses safer .NET constructor syntax for Windows PowerShell.
- Adds a startup error message box and writes fatal errors to Desktop\beerleague-launcher-debug.log.
- Adds test-launcher-visible.cmd so errors stay visible while testing.

What changed from v1.1.3
------------------------
- Removed beerleague-launcher.vbs from the package entirely because some antivirus tools quarantine VBS files.
- The protocol handler still launches the PowerShell GUI helper directly with powershell.exe -WindowStyle Hidden, so no browser-click CLI window should appear.

What changed from v1.1.2
------------------------
- Protocol registration now points directly at `beerleague-launcher.ps1` with `powershell.exe -WindowStyle Hidden`.
- Removed the browser-launch dependency on `beerleague-launcher.vbs`, so a missing/mis-extracted VBS cannot break the handler.
- The actual launched helper is still the BEERLEAGUE logo/status GUI, not a CLI prompt.

What changed from v1.1
----------------------
- Installer now force-removes any old broken beerleague:// registry handler before registering the GUI helper.
- Added repair-protocol.cmd for one-click protocol repair if Windows keeps opening an old cmd.exe path.

What changed from v1.0
----------------------
- Protocol launches through wscript + PowerShell hidden, so no CLI prompt window appears.
- A small BEERLEAGUE GUI opens with the BEERLEAGUE logo.
- Status messages show what is happening: preparing, launching CS:GO, waiting, focusing, and connecting.
- Same confirmed working auto-connect method remains: launch CS:GO Legacy AppID 4465480, wait, focus the game, paste `connect IP:PORT`, press Enter.

Install
-------
1. Extract this zip.
2. Double-click install-protocol.cmd.
3. Open test-links.html or use the website Launch CS:GO Helper button.

Settings
--------
Edit launcher-settings.ps1 to change:
- $WaitSeconds, default 45
- $SteamAppId, default 4465480
- $GameWindowTitles, title candidates used to focus the CS:GO window

Important
---------
Do not type or alt-tab during the final countdown; the launcher sends Ctrl+V and Enter to the game window near the end.

Debug log
---------
Desktop\beerleague-launcher-debug.log

Uninstall
---------
Double-click uninstall-protocol.cmd.
