-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.py
More file actions
executable file
·39 lines (30 loc) · 864 Bytes
/
functions.py
File metadata and controls
executable file
·39 lines (30 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python3
import sys
import struct
import json
import re
from collections import namedtuple
from bodyprog import *
from textures import *
def main():
silent_path = sys.argv[1]
with open(silent_path, 'rb') as f:
data = bytearray(f.read())
silent = memoryview(data)
#xorBodyprog(silent)
#for mi in MapInfos:
#patch_map(silent, mi)
#extract_map_messages(silent, mi)
#patch_map(silent, OverlayInfos[1])
#extract_bodyprog_messages(silent)
#patch_bodyprog(silent)
#with open(silent_path+".new", 'wb') as f:
# f.write(silent)
#dump_bodyprog(silent)
dump_font(silent)
with open("/home/oxi/.wine/drive_c/users/oxi/AppData/Local/Temp/SILENT", 'wb') as f:
f.write(silent)
def dump_data(memoryview: silent):
dump_font(silent)
dump_bodyprog(silent)
main()