mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 22:38:54 -06:00
refactor: split the platform pack plan and zip
This commit is contained in:
1 parent
c8258522a4
commit
83055b87ea
15 files changed
+1033
-991
No files matched your search
@@ -18,6 +18,7 @@ from pathlib import Path
|
||||
import yaml
|
||||
from packs import archive
|
||||
from packs import platformpack
|
||||
from packs import platformzip
|
||||
|
||||
from model.platforms import load_platform_config
|
||||
|
||||
@@ -85,14 +86,14 @@ class ThePackReadmeNamesTheSpellingsItLeavesOut(unittest.TestCase):
|
||||
}}}))
|
||||
_platform_config_cache.clear()
|
||||
texts: dict[str, str] = {}
|
||||
real = platformpack.write_generated_member
|
||||
real = platformzip.write_generated_member
|
||||
|
||||
def capture(zf, arcname, text):
|
||||
texts[arcname] = text
|
||||
return real(zf, arcname, text)
|
||||
|
||||
platformpack.write_generated_member = capture
|
||||
self.addCleanup(setattr, platformpack, "write_generated_member", real)
|
||||
platformzip.write_generated_member = capture
|
||||
self.addCleanup(setattr, platformzip, "write_generated_member", real)
|
||||
platformpack.build_platform_pack(
|
||||
"p", "platforms", self.db, "bios", "", emulators_dir="emulators",
|
||||
offline=True, record=archive.PackRecord(),
|
||||
|
||||
Reference in new issue
Block a user