summaryrefslogtreecommitdiff
path: root/extract_assets.py
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2021-12-20 20:33:42 -0700
committerGitHub <noreply@github.com>2021-12-20 20:33:42 -0700
commit48a06f2fa5bf1ece94095980f1fef4f306accbeb (patch)
tree3cfe6446bd41c885c0f92a158500702044c8157d /extract_assets.py
parentcdb3ca63aa6170fa82c2e708dde6380f2204d067 (diff)
Add MSYS2 MinGW x64 Support (#108)
* Added MSYS2 MinGW x64 Support * Updated recomp * Updated tools
Diffstat (limited to 'extract_assets.py')
-rwxr-xr-xextract_assets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/extract_assets.py b/extract_assets.py
index 063e5df53..9f087bdb3 100755
--- a/extract_assets.py
+++ b/extract_assets.py
@@ -236,9 +236,10 @@ def main():
else: # pull directly from same block as CI data
pal_offset = int(meta["pal"], 0)
pal_input = image[pal_offset : pal_offset + pal_size]
- tmp_pal = tempfile.NamedTemporaryFile(prefix="asset_pal")
+ tmp_pal = tempfile.NamedTemporaryFile(prefix="asset_pal", delete=False)
tmp_pal.write(pal_input)
tmp_pal.flush()
+ tmp_pal.close()
# append the palette commands
cmd.extend([
"-c", ci_fmt,