Skip to content

Instantly share code, notes, and snippets.

@derplayer
Last active October 2, 2021 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derplayer/b0479fa25ed00d48e98109c5228ab783 to your computer and use it in GitHub Desktop.
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)
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