name some symbols, decompile most of w10Dll
This commit is contained in:
parent
96db71280b
commit
ecf02cfdec
8 changed files with 848 additions and 5 deletions
25
get_rel_function_names.py
Executable file
25
get_rel_function_names.py
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print("Usage: python script.py <file_path>")
|
||||
sys.exit(1)
|
||||
|
||||
file_path = sys.argv[1]
|
||||
lines_starting_with_fn = ""
|
||||
|
||||
with open(file_path, 'r') as file:
|
||||
for line in file:
|
||||
# Remove leading and trailing whitespaces
|
||||
line = line.strip()
|
||||
|
||||
if line.startswith(".fn fn_"):
|
||||
# Remove ".fn " from the beginning of the line
|
||||
line = line[len(".fn "):]
|
||||
|
||||
# Remove ", global" from the end of the line
|
||||
line = line.rstrip(', global')
|
||||
|
||||
lines_starting_with_fn += "// " + line + '\n\n'
|
||||
|
||||
print(lines_starting_with_fn)
|
||||
Loading…
Add table
Add a link
Reference in a new issue