mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-18 07:37:49 -06:00
feat: read a launcher name with an added extension
ROCKNIX's Amiberry configs pass kick34005.A500.rom and kick40068.A1200.rom, Amiberry's names for Kickstart 1.3 and 3.1 with .rom appended. Amiberry opens the path as given and boots AROS without it, so the pack now ships the held ROM under the launcher's name.
This commit is contained in:
1 parent
7f76419f3c
commit
6024932846
4 files changed
+45
-2
No files matched your search
@@ -50,7 +50,7 @@ from common import (
|
||||
select_emulator_profiles,
|
||||
)
|
||||
from hashing import parse_hash_list
|
||||
from launchers import LauncherLayer, declared_destinations, held_record, set_by
|
||||
from launchers import LauncherLayer, declared_destinations, held_record, set_by, suffixed_stem
|
||||
from launchers import _directories as launcher_directories
|
||||
from launchers import _names as launcher_names
|
||||
from validation import (
|
||||
@@ -1116,8 +1116,11 @@ class _NameHolder:
|
||||
return self._cache[name]
|
||||
base = name.rsplit("/", 1)[-1]
|
||||
found: tuple[str, bool] | None = None
|
||||
stem = suffixed_stem(base)
|
||||
if base in self.by_name or any(map(self._entry_held, self.exact.get(base, []))):
|
||||
found = (base, True)
|
||||
elif stem is not None and any(map(self._entry_held, self.exact.get(stem, []))):
|
||||
found = (base, True)
|
||||
else:
|
||||
path, _status = resolve_local_file(
|
||||
{"name": name}, self.db, data_dir_registry=self.registry
|
||||
|
||||
Reference in new issue
Block a user