Skip to content

Instantly share code, notes, and snippets.

@nishad
Created November 8, 2016 05:42
Show Gist options
  • Save nishad/3a9c24af4733b30f2df63bda4129e9cc to your computer and use it in GitHub Desktop.
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.
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