fix: copy Azahar and Flycast files on macOS too

--standalone-copies named Linux and Windows folders for Azahar's aes_keys.txt and boot9.bin and Flycast's dc_boot.bin and dc_nvmem.bin, and nothing for macOS, where both emulators read a fixed folder: ~/Library/Application Support/Azahar/sysdata (common_paths.h:36,61) and ~/Library/Application Support/Flycast/data (osx-main.mm:83-101). A test now requires a macOS folder on every copy.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 03:20:01 +02:00
1 parent 96981b79d8
commit 600bb71fb1
2 files changed
+31

No files matched your search

+12
View File
@@ -43,6 +43,9 @@ _standalone_copies: &standalone_copies
- $HOME/.var/app/org.azahar_emu.Azahar/data/azahar-emu/sysdata
windows:
- '%APPDATA%\Azahar\sysdata'
# common_paths.h:36,61 (azahar 987f1840).
darwin:
- $HOME/Library/Application Support/Azahar/sysdata
- file: Citra/sysdata/boot9.bin
targets:
linux:
@@ -50,6 +53,9 @@ _standalone_copies: &standalone_copies
- $HOME/.var/app/org.azahar_emu.Azahar/data/azahar-emu/sysdata
windows:
- '%APPDATA%\Azahar\sysdata'
# common_paths.h:36,61 (azahar 987f1840).
darwin:
- $HOME/Library/Application Support/Azahar/sysdata
# DuckStation (PS1)
- pattern: 'scph*.bin'
targets:
@@ -149,6 +155,9 @@ _standalone_copies: &standalone_copies
- $HOME/.var/app/org.flycast.Flycast/data/flycast
windows:
- '%APPDATA%\flycast\data'
# shell/apple/emulator-osx/emulator-osx/osx-main.mm:83-101 (flycast 6bb0fc3e).
darwin:
- $HOME/Library/Application Support/Flycast/data
- file: dc/dc_nvmem.bin
targets:
linux:
@@ -156,6 +165,9 @@ _standalone_copies: &standalone_copies
- $HOME/.var/app/org.flycast.Flycast/data/flycast
windows:
- '%APPDATA%\flycast\data'
# shell/apple/emulator-osx/emulator-osx/osx-main.mm:83-101 (flycast 6bb0fc3e).
darwin:
- $HOME/Library/Application Support/Flycast/data
platforms:
retroarch:
+19
View File
@@ -3000,5 +3000,24 @@ class NoFallbackOutsideWhatAPlatformReads(unittest.TestCase):
self.assertIn("--dest", err.getvalue())
class EveryStandaloneCopyNamesItsMacFolder(unittest.TestCase):
"""--standalone-copies copied Azahar's keys and Flycast's boot ROM on
Linux and Windows and silently skipped them on macOS, where both
emulators read a fixed Application Support folder."""
def test_each_copy_has_a_darwin_target(self):
import yaml
registry = yaml.safe_load(
(Path(__file__).resolve().parents[1] / "platforms" / "_registry.yml").read_text()
)
missing = [
entry.get("file") or entry.get("pattern")
for entry in registry["_standalone_copies"]
if entry.get("targets") and "darwin" not in entry["targets"]
]
self.assertEqual(missing, [])
if __name__ == "__main__":
unittest.main()