summaryrefslogtreecommitdiff
path: root/tools/assets
diff options
context:
space:
mode:
authorDragorn421 <Dragorn421@users.noreply.github.com>2025-06-06 05:02:04 +0200
committerGitHub <noreply@github.com>2025-06-05 23:02:04 -0400
commitc6dbebfcd25ea86ceefcc8957a2d3ec8f8f4d67b (patch)
tree9dc1989b47024b3a00f5937686d0d4ef7bdab441 /tools/assets
parentb84d1afc67eb0452f715232f832dcef19635c743 (diff)
Fix too long filenames for windows (#2591)
Diffstat (limited to 'tools/assets')
-rw-r--r--tools/assets/extract/extase_oot64/dlist_resources.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/assets/extract/extase_oot64/dlist_resources.py b/tools/assets/extract/extase_oot64/dlist_resources.py
index fb69fc2b9..f80a2f995 100644
--- a/tools/assets/extract/extase_oot64/dlist_resources.py
+++ b/tools/assets/extract/extase_oot64/dlist_resources.py
@@ -43,6 +43,7 @@ VERBOSE_ColorIndexedTexturesManager = False
VERBOSE_BEST_EFFORT_TLUT_NO_REAL_USER = True
EXPLICIT_DL_AND_TEX_SIZES = True
+TEXS_SHORTER_NAMES = True
class MtxResource(CDataResource):
@@ -1168,7 +1169,7 @@ class ColorIndexedTexturesManager:
lambda file, offset: TextureResource(
file,
offset,
- f"{reporter.name}_{offset:08X}_CITex",
+ f"{file.name if TEXS_SHORTER_NAMES else reporter.name}_{offset:08X}_CITex",
tex.fmt,
tex.siz,
tex.width,
@@ -1190,7 +1191,7 @@ class ColorIndexedTexturesManager:
lambda file, offset: TLUTResource(
file,
offset,
- f"{reporter.name}_{offset:08X}_TLUT",
+ f"{file.name if TEXS_SHORTER_NAMES else reporter.name}_{offset:08X}_TLUT",
{
G_TT.RGBA16: G_IM_FMT.RGBA,
G_TT.IA16: G_IM_FMT.IA,
@@ -1258,7 +1259,7 @@ class DListResource(Resource, can_size_be_unknown=True):
lambda file, offset: TextureResource(
file,
offset,
- f"{self.name}_{offset:08X}_Tex",
+ f"{file.name if TEXS_SHORTER_NAMES else self.name}_{offset:08X}_Tex",
g_fmt,
g_siz,
width,