mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-21 03:09:08 -05:00
fix: refuse an export without its original
System.dat, RomM, Recalbox and RetroBat were rebuilt from our data when their file was not cached: libretro's quoted names, Recalbox's comments and one of its two zxspectrum blocks were lost, and the run said OK. needs_original now follows native_sources, so every format we patch fails without the file it patches and writes nothing.
This commit is contained in:
1 parent
77deef1820
commit
7a65a2cf83
3 files changed
+35
-8
No files matched your search
@@ -472,11 +472,8 @@ def export_platform(
|
||||
originals, missing = collect_originals(
|
||||
exporter, systems, upstream_dir, allow_fetch, scraped
|
||||
)
|
||||
if missing and exporter.needs_original():
|
||||
if missing:
|
||||
return False, [f"the platform's own file is required: {m}" for m in missing]
|
||||
messages.extend(
|
||||
f"original unavailable, written from our data: {m}" for m in missing
|
||||
)
|
||||
|
||||
try:
|
||||
produced = exporter.render(systems, report, originals, scraped)
|
||||
|
||||
Reference in new issue
Block a user