Skip to content

Instantly share code, notes, and snippets.

@dantarion
Created July 30, 2016 15:29
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 dantarion/6d92a562985a6aa601922dec37d0e1ef to your computer and use it in GitHub Desktop.
Save dantarion/6d92a562985a6aa601922dec37d0e1ef to your computer and use it in GitHub Desktop.
BlazblueDecryptDecompress
import os, struct,zlib
import subprocess
TARGET_FOLDER = "M:\\SteamLibrary\\SteamApps\\common\\BlazBlue Chronophantasma Extend\\data\\char_e\\"
for root,dirs,files in os.walk(TARGET_FOLDER):
for filename in files:
print os.path.join(root,filename)
subprocess.call(["ggxrd_decrypter.exe",os.path.join(root,filename)],shell=True)
if os.path.isfile("out/"+filename):
os.remove("out/"+filename)
os.rename(os.path.join(root,filename)+".decrypted","out/"+filename)
f = open("out/"+filename,"r+b")
f.seek(0x10)
data = zlib.decompress(f.read())
f.seek(0)
f.write(data)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment