feat: Add auto-detection and integration for game performance wrappers like gamemoderun and game-performance.

This commit is contained in:
CPTN Cosmo 2026-03-26 21:29:07 +01:00
parent 95ec73df5c
commit 72c301be78
4 changed files with 45 additions and 3 deletions

View file

@ -9,6 +9,7 @@ This is a wrapper script for Linux that launches `xivlauncher-core` (Native or F
- **OTP Injection**: Generates TOTP codes and sends them to the launcher's internal server.
- **URL Support**: Accepts standard Base32 secrets OR full `otpauth://` URLs (e.g. from QR codes).
- **Auto-Configuration**: Prompts to fix `launcher.ini` settings if they are incorrect.
- **Performance Optimization**: Automatically detects and integrates with `gamemoderun` or `game-performance` to optimize your game instance.
## Installation (Steam Deck / Linux Desktop)
@ -42,8 +43,10 @@ The easiest way to install is using the provided installer script. This script w
cp config.example.json ~/.config/xivlauncher-wrapper/config.json
nano ~/.config/xivlauncher-wrapper/config.json
```
* `secret`: Enter your TOTP secret key or `otpauth://` URL.
* `secret`: Enter your TOTP secret key or `otpauth://` URL (optional, defaults to secure system keyring).
* `launcher_cmd`: (Optional) The command to launch XIVLauncher. If omitted, the wrapper will auto-detect it.
* `use_gamemode`: (Optional) Set to `true` to launch using a game performance wrapper.
* `gamemode_cmd`: (Optional) The specific game performance utility to use (e.g., `"gamemoderun"` or `"game-performance"`).
2. **Make Executable:**
```bash