Gating network behind compile flag

This commit is contained in:
2026-08-11 12:52:38 -05:00
parent 5f34cb34b2
commit 830864aa8a
281 changed files with 334 additions and 13204 deletions
+3 -4
View File
@@ -1,6 +1,7 @@
import argparse
import json
import os
from tools.writeifchanged import write_if_changed
parser = argparse.ArgumentParser(description="Item JSON to .h defines")
parser.add_argument("--json", required=True, help="Path to item JSON file")
@@ -109,6 +110,4 @@ out += [
"",
]
os.makedirs(os.path.dirname(args.output), exist_ok=True)
with open(args.output, "w", encoding="utf-8") as f:
f.write("\n".join(out))
write_if_changed(args.output, "\n".join(out))