[jak2] use art constants (#2097)

This commit is contained in:
water111
2023-01-07 10:32:03 -05:00
committed by GitHub
parent 5095b867b0
commit f50c0e56e9
104 changed files with 6185 additions and 1415 deletions
+15
View File
@@ -0,0 +1,15 @@
import os
import glob
def get_goal_files(root_dir, ext = "*.gc"):
"""Get all GOAL source files under root_dir."""
return [goal_file for file in os.walk(root_dir) for goal_file in glob.glob(os.path.join(file[0], ext))]
all_files = get_goal_files("./decompiler_out/jak2/import")
result = ""
for file in all_files:
with open(file) as f:
for line in f:
if line.startswith("(def"):
result += line
print(result)