DART on Linux (Steam / Proton)
==============================

SpeedRunners 2 on Linux is the Windows build running under Proton, so the mod
is the same one Windows players use. This folder installs it without any
Windows tooling:

  install.sh        patches the game (same steps as installer.bat)
  uninstall.sh      restores the vanilla game / removes DART
  patcher/          the DART patcher as a portable .NET app (DART.dll + Mono.Cecil)

Install
-------
  1. Extract the whole zip somewhere permanent (the install folder is remembered).
  2. In a terminal:   bash linux/install.sh
     (or: chmod +x linux/*.sh && ./linux/install.sh)
  3. Launch SpeedRunners 2 from Steam. Press F2 in-game for the DART menu.

Requirements
------------
  - SpeedRunners 2 (King of Speed) installed via Steam, run with Proton.
  - The .NET runtime, version 8 or newer. If it's missing, install.sh offers
    Microsoft's user-local install into ~/.dotnet (no root needed; works on the
    Steam Deck). Distro packages work too:
        Debian/Ubuntu:  sudo apt install dotnet-runtime-8.0
        Fedora:         sudo dnf install dotnet-runtime-8.0
        Arch:           sudo pacman -S dotnet-runtime

Where is the game?
------------------
  install.sh looks through every Steam library (libraryfolders.vdf), including
  Flatpak and Snap Steam. To override, either export
      SR2_GAMEDIR="/.../steamapps/common/Speedrunners 2 King of Speed/SpeedRunners 2_Data/Managed"
  or put that path on the first line of linux/install_path.txt.

Private test realm
------------------
  Steam > SpeedRunners 2 > Properties > Launch options:  -darty

Known limits on Linux
---------------------
  - Updating: re-run install.sh with a newer DART zip. The in-game self-updater
    and the custom-skin converters (PNG / 3D-model import, template bundling)
    call Windows PowerShell, which Proton does not provide. Everything else -
    practice tools, rollback, lobby browser, downloaded templates, hosted skins
    - works as on Windows.
  - Logs: logs/install-latest.log and logs/uninstall-latest.log.

Uninstall
---------
      bash linux/uninstall.sh
  Option 1 removes DART and restores the vanilla game files from the backups
  the patcher made; option 2 additionally asks Steam to uninstall the game.
