From f475a97d1062a75448a4e1d3e6242aeb0498d500 Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Wed, 7 Feb 2024 11:31:02 +0000 Subject: [PATCH] fix build See https://github.com/pmret/papermario/issues/1170 --- tools/splat_ext/pm_map_data.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/splat_ext/pm_map_data.py b/tools/splat_ext/pm_map_data.py index 3d5e0908cc1..e3061feec53 100644 --- a/tools/splat_ext/pm_map_data.py +++ b/tools/splat_ext/pm_map_data.py @@ -130,7 +130,12 @@ def split(self, rom_bytes): if name == "end_data": break - assert self.files.get(name) is not None + if self.files.get(name) is None: + # TODO + # https://github.com/pmret/papermario/issues/1170 + self.warn(f"skipping unknown file {name}") + asset_idx += 1 + continue if offset == 0: path = None