Created
July 30, 2016 15:29
-
-
Save dantarion/6d92a562985a6aa601922dec37d0e1ef to your computer and use it in GitHub Desktop.
BlazblueDecryptDecompress
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, 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