Fix dirs?

This commit is contained in:
sozud 2024-10-02 21:47:57 -07:00
parent a239ecc7e0
commit b64cda2e3f

View File

@ -417,6 +417,9 @@ class sotn_function:
if __name__ == "__main__":
timer = time.perf_counter()
args = parser.parse_args()
if args.output_dir:
output_dir = args.output_dir
if not os.path.exists(output_dir):
os.makedirs(output_dir)
# 1: Create baseline function objects for every .s file
@ -464,9 +467,6 @@ if __name__ == "__main__":
if not any(x in function.c_filename for x in ["psxsdk", "mad"]):
analyze(function)
print(f"Calculated call relations in {time.perf_counter() - timer} seconds")
args = parser.parse_args()
if args.output_dir:
output_dir = args.output_dir
if not args.ultradry:
print(f"Rendering in {'dry' if args.dry else 'full output'} mode")