mirror of
https://github.com/scummvm/director-tests.git
synced 2026-05-21 05:40:50 +00:00
47cb9dedbe
Different director versions have different string equalitytables. The directory `stringequality` contains all that is necessary to recreate the table for D3 and D4 mac and D4 and D5 windows.
10 lines
421 B
Python
10 lines
421 B
Python
if __name__ == "__main__":
|
|
with open("D3-mac-equalitytable.txt", "r") as file:
|
|
data = file.read()
|
|
table_from_mac = [i for i in data.replace("-", "").replace("\"","").replace(" ", "").split('\n') if i]
|
|
equality_table = list(range(256))
|
|
for i in table_from_mac:
|
|
a, b = i.split(":")
|
|
equality_table[int(a)] = int(b)
|
|
print([hex(i) for i in equality_table])
|