mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-27 06:50:35 +00:00
Format code
This commit is contained in:
parent
d3e1b3fe27
commit
2d7a7caf22
@ -158,9 +158,13 @@ def get_sdk_funcs():
|
||||
def get_main_funcs():
|
||||
with open(f"config/symbols.us.txt") as f:
|
||||
symbols = f.readlines()
|
||||
index_first_func = next((i for i, s in enumerate(symbols) if s.startswith("__main")), None)
|
||||
index_last_func = next((i for i, s in enumerate(symbols) if s.startswith("SpuGetAllKeysStatus")), None)
|
||||
symbols = symbols[index_first_func:index_last_func+1]
|
||||
index_first_func = next(
|
||||
(i for i, s in enumerate(symbols) if s.startswith("__main")), None
|
||||
)
|
||||
index_last_func = next(
|
||||
(i for i, s in enumerate(symbols) if s.startswith("SpuGetAllKeysStatus")), None
|
||||
)
|
||||
symbols = symbols[index_first_func : index_last_func + 1]
|
||||
return [line.split(" = ")[0] for line in symbols]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user