summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice <maurice.henke@protonmail.com>2021-07-05 17:23:24 +0200
committerMaurice <maurice.henke@protonmail.com>2021-07-05 17:23:24 +0200
commitfbb668b6ca37206fd770dc5cce5a104226838314 (patch)
tree36f1f24b1cbf5bdbd97e4d60b623fbb5de3239c2
parent4e67ef632cc5d440938e1c3eb3b7a57bd868581c (diff)
gci will now accept images created with wimgt
this is hacky but working (for now)
-rw-r--r--GameCube/bin/gcipack.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/GameCube/bin/gcipack.py b/GameCube/bin/gcipack.py
index 6b22b19d..69b74e8c 100644
--- a/GameCube/bin/gcipack.py
+++ b/GameCube/bin/gcipack.py
@@ -15,12 +15,18 @@ bannerFile = open(sys.argv[5], "rb")
bannerBuffer = ctypes.create_string_buffer(bannerFile.read())[:-1]
if len(bannerBuffer) != 0x1800:
print("Warning: banner size mismatch (should be 96x32 RGB5A3)")
+ bannerData = bannerBuffer[0x20:0x1820]
+
+ bannerBuffer = bannerData
bannerFile.close()
iconFile = open(sys.argv[6], "rb")
iconBuffer = ctypes.create_string_buffer(iconFile.read())[:-1]
if len(iconBuffer) != 0x800:
print("Warning: icon size mismatch %d (should be 32x32 RGB5A3)" % len(iconBuffer))
+ iconData = iconBuffer[0x20:0x820]
+
+ iconBuffer = iconData
iconFile.close()
# Comment