MCPcopy Create free account
hub / github.com/doldecomp/mkdd / import_h_file

Function import_h_file

tools/decompctx.py:50–60  ·  view source on GitHub ↗
(in_file: str, r_path: str)

Source from the content-addressed store, hash-verified

48
49
50def import_h_file(in_file: str, r_path: str) -> str:
51 rel_path = os.path.join(root_dir, r_path, in_file)
52 if os.path.exists(rel_path):
53 return import_c_file(rel_path)
54 for include_dir in include_dirs:
55 inc_path = os.path.join(include_dir, in_file)
56 if os.path.exists(inc_path):
57 return import_c_file(inc_path)
58 else:
59 print("Failed to locate", in_file)
60 return ""
61
62
63def import_c_file(in_file: str) -> str:

Callers 1

process_fileFunction · 0.85

Calls 1

import_c_fileFunction · 0.85

Tested by

no test coverage detected