Lineage 2 Music ogg decrypter
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 mmap | |
import sys | |
import os | |
import glob | |
if len(sys.argv) != 2: | |
sys.exit('Usage: %s directory' % sys.argv[0]) | |
if not os.path.exists(sys.argv[1]): | |
sys.exit('ERROR: directory %s was not found!' % sys.argv[1]) | |
files = glob.glob(sys.argv[1] + '/*.ogg') | |
for file in files: | |
f = open(file, 'a+') | |
m = mmap.mmap(f.fileno(), 0) | |
print m[0:4] | |
if m[0:4] == 'L2SD': | |
m[0:4] = 'OggS' | |
m.close() | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! Funny to see that they have changed OggS to L2SD.