mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-19 18:32:48 +00:00
feat: add load_from field for non-system_dir files
Replaces mode: standalone hack with load_from: save_dir on Panda3DS files. The load_from field documents which libretro directory callback provides the base path (system_dir default, save_dir, content_dir). Pack generator and cross-reference skip files not targeting system_dir.
This commit is contained in:
parent
2dd2b724c1
commit
97eb4835be
3 changed files with 10 additions and 2 deletions
|
|
@ -402,6 +402,10 @@ def _collect_emulator_extras(
|
|||
continue
|
||||
if file_mode == "libretro" and is_standalone:
|
||||
continue
|
||||
# Skip files loaded from non-system directories (save_dir, content_dir)
|
||||
load_from = f.get("load_from", "")
|
||||
if load_from and load_from != "system_dir":
|
||||
continue
|
||||
if is_standalone:
|
||||
dest = f.get("standalone_path") or f.get("path") or fname
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -327,6 +327,10 @@ def find_undeclared_files(
|
|||
continue
|
||||
if file_mode == "libretro" and is_standalone:
|
||||
continue
|
||||
# Skip files loaded from non-system directories (save_dir, content_dir)
|
||||
load_from = f.get("load_from", "")
|
||||
if load_from and load_from != "system_dir":
|
||||
continue
|
||||
|
||||
archive = f.get("archive")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue