Format code

This commit is contained in:
Xeeynamo 2023-08-01 23:01:32 +00:00 committed by github-actions[bot]
parent d3e1b3fe27
commit 2d7a7caf22

View File

@ -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]