mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-21 09:07:50 -06:00
fix: read EmuELEC's home in launcher paths
EmuELEC links /storage/.local/share/flycast to /storage/roms/bios/dc (flycast.sh:11-14 at v4.8), and Flycast reads $HOME/.local/share/flycast. Root's home there is /storage (packages/sysutils/busybox/package.mk:168, profile.d/98-busybox.conf:4, sourced by flycast.sh:7), which nothing recorded, so the link bound nothing and flycastsa's files went to the BIOS root. The registry's home_directory now spells that directory as ~ in the handles and directories of launcher records. flycastsa's ten files land in bios/dc, where the libretro build already reads them. The manifest drops dc_boot.bin and dc_nvmem.bin from the BIOS root, which no emulator reads there, and six arcade archives at the root go back to the MAME sets the mame cores claim.
This commit is contained in:
1 parent
adac87ec32
commit
5255716273
3 files changed
+40
-4
No files matched your search
@@ -721,5 +721,31 @@ class Quasi88OnRetroPie(unittest.TestCase):
|
||||
)
|
||||
|
||||
|
||||
class FlycastOnEmuELEC(unittest.TestCase):
|
||||
"""EmuELEC links /storage/.local/share/flycast to bios/dc (flycast.sh:11-14),
|
||||
and root's home is /storage (busybox profile.d/98-busybox.conf:4)."""
|
||||
|
||||
def test_the_home_directory_is_spelled_as_home(self) -> None:
|
||||
from launchers import normalize_handle
|
||||
|
||||
self.assertEqual(
|
||||
normalize_handle("/storage/.local/share/flycast", "/storage"), "~/.local/share/flycast"
|
||||
)
|
||||
self.assertEqual(normalize_handle("/storage", "/storage/"), "~")
|
||||
self.assertEqual(normalize_handle("/storagex/a", "/storage"), "/storagex/a")
|
||||
self.assertEqual(
|
||||
normalize_handle("/storage/.local/share/flycast"), "/storage/.local/share/flycast"
|
||||
)
|
||||
|
||||
def test_the_bios_lands_in_dc(self) -> None:
|
||||
profile = load_emulator_profiles(str(REPO_ROOT / "emulators"))["flycast"]
|
||||
config = load_platform_config("emuelec", str(REPO_ROOT / "platforms"))
|
||||
layouts = platform_layouts("flycast", profile, standalone_set(config))
|
||||
(view,) = [v for v, standalone in layouts if standalone]
|
||||
self.assertTrue(view["files"])
|
||||
for entry in view["files"]:
|
||||
self.assertEqual(entry["standalone_path"], "dc/" + entry["layout_path"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user