Last active
October 2, 2021 22:01
-
-
Save derplayer/b0479fa25ed00d48e98109c5228ab783 to your computer and use it in GitHub Desktop.
Who Wants to Be a Millionaire? Party Edition - *.bog to *.dds Converter (archive.imp)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
# extract archive.imp with quickbms and imp0.bms to get the raw files | |
# use this one http://aluigi.altervista.org/bms/imp0.bms | |
# then copy this script into the extracted folder | |
rootdir = './' | |
# note: this will not work on all files only the ones that have a cheap header before dds | |
for subdir, dirs, files in os.walk(rootdir): | |
for file in files: | |
print os.path.join(subdir, file) | |
ext = os.path.splitext(file)[-1].lower() | |
if ext.lower() == ".bog": | |
with open(os.path.join(subdir, file), 'rb') as in_file: | |
with open(os.path.join(subdir, file + '.dds'), 'wb') as out_file: | |
out_file.write(in_file.read()[52:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment