Add CLI support and headless mode for RGSX

- Introduced a command-line interface (CLI) for RGSX, allowing users to list platforms, games, and download ROMs without a graphical interface.
- Added a new README_CLI.md file detailing CLI usage, commands, and examples.
This commit is contained in:
skymike03
2025-09-10 17:17:34 +02:00
parent 626359095e
commit 44bf0eda24
9 changed files with 970 additions and 31 deletions
+8 -1
View File
@@ -1,5 +1,4 @@
import shutil
import pygame # type: ignore
import re
import json
import os
@@ -7,6 +6,14 @@ import logging
import platform
import subprocess
import config
from config import HEADLESS
try:
if not HEADLESS:
import pygame # type: ignore
else:
pygame = None # type: ignore
except Exception:
pygame = None # type: ignore
import glob
import threading
from rgsx_settings import load_rgsx_settings, save_rgsx_settings