From e24e2f5696ff0b2648b21334a9aa835444f0f114 Mon Sep 17 00:00:00 2001 From: pushfoo <36696816+pushfoo@users.noreply.github.com> Date: Tue, 14 Jan 2025 01:55:34 -0500 Subject: [PATCH] Split the fonts from tiled maps --- util/create_resources_listing.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/util/create_resources_listing.py b/util/create_resources_listing.py index 3dccb60c9..e4dc458d8 100644 --- a/util/create_resources_listing.py +++ b/util/create_resources_listing.py @@ -298,6 +298,7 @@ def process_resource_directory(out, dir: Path): '.avi': 'avi' } + def process_resource_files(out, file_list: List[Path]): cell_count = 0 @@ -343,8 +344,12 @@ def process_resource_files(out, file_list: List[Path]): elif suffix == ".glsl": file_path = FMT_URL_REF_PAGE.format(resource_path) out.write(f" {start_row} - `{path} <{file_path}>`_\n") - # Link Tiled maps - elif suffix in (".json", ".ttf"): + # Fonts + elif suffix == ".ttf": + file_path = FMT_URL_REF_PAGE.format(resource_path) + out.write(f" {start_row} - `{name} <{file_path}>`_\n") + # Tiled maps + elif suffix == ".json": file_path = FMT_URL_REF_PAGE.format(resource_path) out.write(f" {start_row} - `{name} <{file_path}>`_\n") else: