feat: read the folders launchers hand switch, ps4

Batocera's 002-adjust-paths.patch rewrites Citron's KeysDir to
/userdata/bios/switch: patched_paths reads it from the patch, and KNULLI
from its batocera submodule at the pinned commit. Batocera and KNULLI
start shadPS4 from /userdata/system/configs/shadps4 (os.chdir), KNULLI
sets suyu's XDG_DATA_HOME to /userdata/saves/switch, and RetroBat creates
the portable user folder beside citron.exe and shadPS4.exe. Each platform
file differs from its scraper's full output by these records only.

A profile names a folder a handle rewrites as "<handle> = <subfolder>",
and a record setting a variable or a working directory a declared folder
is spelled from binds the whole layout below it.
This commit is contained in:
Abdessamad Derraz committed 2026-11-09 19:29:10 +01:00
1 parent 39778a7359
commit 62f9ea6a76
11 files changed
+551 -16

No files matched your search

+17
View File
@@ -6581,3 +6581,20 @@ launchers:
fails_when_missing: false
depends_on_option: neocd_bios
source_ref: "package/batocera/core/batocera-configgen/configgen/configgen/generators/libretro/libretroOptions.py:2040-2041"
- emulator: shadps4
build: standalone
kind: passes_path
names: []
search_dir: /userdata/system/configs/shadps4
passes_to: working directory of shadps4Generator.py
fails_when_missing: false
source_ref: "package/batocera/core/batocera-configgen/configgen/configgen/generators/shadps4/shadps4Generator.py:46, 228"
- emulator: citron
build: standalone
kind: passes_path
names: []
search_dir: /userdata/bios/switch
passes_to: "CitronPath::KeysDir in src/common/fs/path_util.cpp returns it, in place of citron_path\
\ / KEYS_DIR"
fails_when_missing: false
source_ref: "package/batocera/emulators/citron/002-adjust-paths.patch:9-10"
+25
View File
@@ -5685,6 +5685,14 @@ launchers:
passes_to: environment FLYCAST_BIOS_PATH
fails_when_missing: false
source_ref: "package/system/knulli-configgen/configgen/configgen/generators/flycast/flycastGenerator.py:239"
- emulator: shadps4
build: standalone
kind: passes_path
names: []
search_dir: /userdata/system/configs/shadps4
passes_to: working directory of shadps4Generator.py
fails_when_missing: false
source_ref: "package/system/knulli-configgen/configgen/configgen/generators/shadps4/shadps4Generator.py:33, 164"
- emulator: lexaloffle
build: standalone
kind: fixed_name
@@ -6135,3 +6143,20 @@ launchers:
depends_on_option: not system.name == 'ti99'
source_ref: "package/system/knulli-configgen/configgen/configgen/generators/libretro/libretroMAMEConfig.py:431-432,\
\ 435"
- emulator: suyu
build: standalone
kind: passes_path
names: []
search_dir: /userdata/saves/switch
passes_to: environment XDG_DATA_HOME
fails_when_missing: false
source_ref: "package/system/knulli-configgen/configgen/configgen/generators/suyu/suyuGenerator.py:41"
- emulator: citron
build: standalone
kind: passes_path
names: []
search_dir: /userdata/bios/switch
passes_to: "CitronPath::KeysDir in src/common/fs/path_util.cpp returns it, in place of citron_path\
\ / KEYS_DIR"
fails_when_missing: false
source_ref: "batocera/package/batocera/emulators/citron/002-adjust-paths.patch:9-10"
+16
View File
@@ -4966,6 +4966,22 @@ launchers:
passes_to: exec
fails_when_missing: returns no process when the binary is absent
source_ref: "emulatorLauncher/Generators/Pico8.Generator.cs:14-18, 56-57"
- emulator: citron
build: standalone
kind: passes_path
names: []
search_dir: "<AppConfig.GetFullPath(\"citron\")>/user"
passes_to: PORTABLE_DIR, the user folder beside citron.exe
fails_when_missing: false
source_ref: "emulatorLauncher/Generators/Citron.Generator.cs:25, 29-30"
- emulator: shadps4
build: standalone
kind: passes_path
names: []
search_dir: "<AppConfig.GetFullPath(\"shadps4\")>/user"
passes_to: PORTABLE_DIR, the user folder beside shadPS4.exe
fails_when_missing: false
source_ref: "emulatorLauncher/Generators/ShadPS4.Generator.cs:29, 158-160"
- emulator: bizhawk
build: standalone
kind: names_searched