SpectreRO headless patcher (for Linux / Lutris / Wine)
======================================================

WHY YOU NEED THIS
  The normal SpectreRO-Patcher.exe draws its window using Microsoft's
  WebView2 Runtime, which does not exist under Wine. On Linux it fails with
  "Could not find the WebView2 Runtime" and cannot patch.

  This version does exactly the same patching with no graphical interface,
  so it runs fine under Wine. The game itself (SpectreRO.exe) never needed
  WebView2 - only the launcher did.

HOW TO USE
  1. Put SpectreRO-Patcher-CLI.exe in your SpectreRO folder, next to
     SpectreRO.exe.
  2. Run it through the SAME Wine prefix as the game. In Lutris:
       right-click the game -> Run EXE inside Wine prefix
       -> pick SpectreRO-Patcher-CLI.exe
     Or from a terminal:
       WINEPREFIX=/path/to/prefix wine SpectreRO-Patcher-CLI.exe
  3. Let it finish, then launch the game normally.

OPTIONS
  (no arguments)      download and apply everything that's pending
  --check             show what's pending without changing anything
  --game-dir <path>   patch a folder other than the one the exe sits in
  --manifest <url>    use a different patch server

NOTES
  - It reads and writes the same spectre_patch.json as the normal patcher,
    so you can switch between the two freely.
  - A big update rebuilds spectrero.grf in place and needs about 800 MB of
    free space while it works. Every download is SHA-256 checked before it
    is applied - a corrupt download changes nothing.
  - It does not launch the game. Start it from Lutris as usual.
