refactor: one meaning for copy records

A copies record names its files under search_dir, the folder the code
copies from, and passes_to is the target, as the schema and RetroPie,
RetroDECK and AmberELEC already write it. KNULLI listed patches.zip
under the BIOS folder it is copied into, and KNULLI and RetroBat wrote
the target as prose with the condition. The condition of a copy now
goes in depends_on_option. Only launcher records change in knulli.yml
and retrobat.yml.
This commit is contained in:
Abdessamad Derraz committed 2026-11-09 17:58:37 +01:00
1 parent ffad06487c
commit cedeee2254
8 files changed
+105 -64

No files matched your search

+10 -7
View File
@@ -5793,29 +5793,32 @@ launchers:
- switch/prod.keys
case_insensitive: false
search_dir: /userdata/bios
passes_to: copied to /userdata/system/configs/Ryujinx/system/prod.keys
passes_to: /userdata/system/configs/Ryujinx/system/prod.keys
fails_when_missing: false
depends_on_option: "ryujinxKeys.exists()"
source_ref: "package/system/knulli-configgen/configgen/configgen/generators/ryujinx/ryujinxGenerator.py:107-109"
- emulator: pcsx2
build: standalone
kind: copies
names:
- ps2/patches.zip
- patches.zip
case_insensitive: false
search_dir: /userdata/bios
passes_to: copied from /usr/share/knulli/datainit/bios/ps2/patches.zip
search_dir: /usr/share/knulli/datainit/bios/ps2
passes_to: /userdata/bios/ps2/patches.zip
fails_when_missing: false
depends_on_option: "not pcsx2Patches.exists()"
source_ref: "package/system/knulli-configgen/configgen/configgen/generators/pcsx2/pcsx2Generator.py:78,\
\ 121-122"
- emulator: aethersx2
build: standalone
kind: copies
names:
- ps2/patches.zip
- patches.zip
case_insensitive: false
search_dir: /userdata/bios
passes_to: copied from /usr/share/knulli/datainit/bios/ps2/patches.zip
search_dir: /usr/share/knulli/datainit/bios/ps2
passes_to: /userdata/bios/ps2/patches.zip
fails_when_missing: false
depends_on_option: "not pcsx2Patches.exists()"
source_ref: "package/system/knulli-configgen/configgen/configgen/generators/aethersx2/aethersx2Generator.py:59,\
\ 93-94"
- emulator: gsplus