mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-14 14:03:47 -06:00
fix: profile voxatron apart from pico-8
lexaloffle documented two programs, so every platform naming PICO-8 received Voxatron's files: ROCKNIX, RetroDECK and RetroBat run PICO-8 only. Voxatron is its own profile, named vox_official. A platform also runs the emulators its standalone_cores list names: Batocera and KNULLI list lexaloffle there and nowhere else.
This commit is contained in:
1 parent
2fe15e99f9
commit
f47c8b8e5a
5 files changed
+149
-92
No files matched your search
@@ -57,7 +57,8 @@ NAMED_FOR_A_LAUNCHER = {
|
||||
# Profiles whose entries still rest on a launcher, with the fact that blocks
|
||||
# reading the emulator itself.
|
||||
LAUNCHER_SOURCED = {
|
||||
"lexaloffle": "PICO-8 and Voxatron are sold binaries, and no copy of either is held to read",
|
||||
"lexaloffle": "PICO-8 is a sold binary, and no copy is held to read",
|
||||
"voxatron": "Voxatron is a sold binary, and no copy is held to read",
|
||||
}
|
||||
|
||||
_SENTENCE = re.compile(r"(?<=[.!?])\s+(?=[A-Z0-9(\"'])")
|
||||
|
||||
@@ -364,5 +364,33 @@ class AProgramRunFromItsFolder(unittest.TestCase):
|
||||
install._check_roms_directory({"files": files})
|
||||
|
||||
|
||||
class EachProgramItsOwnProfile(unittest.TestCase):
|
||||
"""PICO-8 and Voxatron are two programs: a platform running one gets its files only."""
|
||||
|
||||
def test_only_the_platforms_that_run_voxatron_get_it(self) -> None:
|
||||
from common import list_registered_platforms, resolve_platform_cores
|
||||
|
||||
profiles = load_emulator_profiles(str(REPO_ROOT / "emulators"))
|
||||
runs = {
|
||||
name: {k for k in ("lexaloffle", "voxatron")
|
||||
if k in resolve_platform_cores(
|
||||
load_platform_config(name, str(REPO_ROOT / "platforms")), profiles)}
|
||||
for name in list_registered_platforms(str(REPO_ROOT / "platforms"))
|
||||
}
|
||||
self.assertEqual(
|
||||
{name for name, found in runs.items() if "voxatron" in found}, {"batocera", "knulli"}
|
||||
)
|
||||
self.assertTrue(all("lexaloffle" in runs[name] for name in (
|
||||
"batocera", "knulli", "rocknix", "retrodeck", "retrobat", "recalbox")))
|
||||
|
||||
def test_a_standalone_emulator_is_run(self) -> None:
|
||||
from common import resolve_platform_cores
|
||||
|
||||
profiles = {"emu": {"emulator": "Emu", "type": "standalone", "cores": ["emu"],
|
||||
"systems": ["sys"], "files": []}}
|
||||
config = {"cores": ["other"], "standalone_cores": ["emu"], "systems": {}}
|
||||
self.assertEqual(resolve_platform_cores(config, profiles), {"emu"})
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user