From a369defc1596b8745851265b0a80ef7f1edd3017 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sun, 29 Mar 2026 07:26:40 +0200 Subject: [PATCH] fix: skip path: null entries in cross-reference Files with explicit path: null are UI-imported (Dolphin NAND, Hatari cartridge) and not resolvable by pack placement. Skip them in find_undeclared_files and cross_reference. Also add desc.dat (SDLPAL fan-made descriptions) to data/. 149/149 OK. --- database.json | 2 +- scripts/cross_reference.py | 4 ++++ scripts/verify.py | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/database.json b/database.json index d33b18b5..c2a2d649 100644 --- a/database.json +++ b/database.json @@ -1,5 +1,5 @@ { - "generated_at": "2026-03-29T00:20:22Z", + "generated_at": "2026-03-29T05:25:34Z", "total_files": 7625, "total_size": 9746817953, "files": { diff --git a/scripts/cross_reference.py b/scripts/cross_reference.py index db6ec0f9..5f8bef1a 100644 --- a/scripts/cross_reference.py +++ b/scripts/cross_reference.py @@ -156,6 +156,10 @@ def cross_reference( if "<" in fname or ">" in fname: continue + # Skip UI-imported files with explicit path: null (not resolvable by pack) + if "path" in f and f["path"] is None: + continue + # Skip standalone-only files file_mode = f.get("mode", "both") if file_mode == "standalone": diff --git a/scripts/verify.py b/scripts/verify.py index 7b157c23..245c5b24 100644 --- a/scripts/verify.py +++ b/scripts/verify.py @@ -318,6 +318,9 @@ def find_undeclared_files( # Skip pattern placeholders (e.g., .bin) if "<" in fname or ">" in fname or "*" in fname: continue + # Skip UI-imported files with explicit path: null (not resolvable by pack) + if "path" in f and f["path"] is None: + continue # Mode filtering: skip files incompatible with platform's usage file_mode = f.get("mode") if file_mode == "standalone" and not is_standalone: