mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
made calc_func_checksums a lot faster
This commit is contained in:
@@ -52,7 +52,7 @@ class FileUtil:
|
||||
@staticmethod
|
||||
def get_bytes_from_file(filename):
|
||||
with open(filename, 'rb') as inFile:
|
||||
return list(inFile.read())
|
||||
return bytearray(inFile.read())
|
||||
|
||||
@staticmethod
|
||||
def write_text_to_file(filename, text):
|
||||
@@ -62,7 +62,7 @@ class FileUtil:
|
||||
@staticmethod
|
||||
def write_bytes_to_file(filename, binary):
|
||||
with open(filename, 'wb') as outFile:
|
||||
outFile.write(bytearray(binary))
|
||||
outFile.write(binary)
|
||||
|
||||
@staticmethod
|
||||
def delete_file(filename):
|
||||
|
||||
Reference in New Issue
Block a user