mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 13:33:24 -05:00
fix: retrobat defaults to its installer directory
This commit is contained in:
1 parent
c13d5c5368
commit
1a862bc318
2 files changed
+20
No files matched your search
@@ -805,6 +805,10 @@ platforms:
|
||||
target_source: null
|
||||
install:
|
||||
detect:
|
||||
# installer.iss: DefaultDirName=C:\RetroBat, the first place to look.
|
||||
- os: windows
|
||||
method: path_exists
|
||||
path: 'C:\RetroBat\bios'
|
||||
- os: windows
|
||||
method: path_exists
|
||||
path: '%USERPROFILE%\RetroBat\bios'
|
||||
|
||||
@@ -56,5 +56,21 @@ class ExtractTargets(unittest.TestCase):
|
||||
self.assertNotIn('" | RetroDECK | `~/retrodeck/` |"', site)
|
||||
|
||||
|
||||
class ThePackGuideNamesTheInstallerDefault(unittest.TestCase):
|
||||
"""The pack README, the registry and install.py each wrote RetroBat's
|
||||
default folder by hand, and two of the three said the home directory
|
||||
where the installer (installer.iss) says C:\\RetroBat."""
|
||||
|
||||
def test_retrobat_guide_matches_the_registry(self):
|
||||
registry = load_platform_registry(PLATFORMS)
|
||||
first = next(
|
||||
rule["path"] for rule in registry["retrobat"]["install"]["detect"]
|
||||
if rule["os"] == "windows" and rule["method"] == "path_exists"
|
||||
)
|
||||
guide = (REPO_ROOT / "scripts" / "packreadme.py").read_text(encoding="utf-8")
|
||||
self.assertEqual(first, "C:\\RetroBat\\bios")
|
||||
self.assertIn("(default: C:\\\\RetroBat\\\\bios\\\\)", guide)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user