Created
November 8, 2016 05:42
-
-
Save nishad/3a9c24af4733b30f2df63bda4129e9cc to your computer and use it in GitHub Desktop.
Python script that converts x100s RAF into x100t RAF, thus enabling the classic chrome profile option.
This file contains hidden or 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 | |
import glob | |
dirpath = os.path.dirname(__file__) | |
filecount = 0 | |
for filename in glob.glob(os.path.join(dirpath, '*.RAF')): | |
print("processing: {}".format(filename)) | |
fh = open(filename, "r+b") | |
fh.seek(368) | |
fh.write(bytes(chr(0x54), 'UTF-8')) | |
fh.close() | |
filecount += 1 | |
print("Done.") | |
print("{} files processed.".format(filecount)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment