summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-07-14 10:55:14 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2026-07-14 10:55:14 -0400
commit2fdc8f35ccf66b1c1dbd0b71bae44f1b58e27051 (patch)
tree7c46d6c3b9669614e4218480aa6435ab365d5ac3
parenta1ef9f163ee6bbe58965e7874dccd056197bfc08 (diff)
Asset extractor: Include headers that define Vec/cXy/GXColor
-rw-r--r--tools/converters/extract_model_data.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/converters/extract_model_data.py b/tools/converters/extract_model_data.py
index bd05e7a3..183a93ee 100644
--- a/tools/converters/extract_model_data.py
+++ b/tools/converters/extract_model_data.py
@@ -53,6 +53,8 @@ def convert_binary_to_Vec_c_source(src_path: str, dest_path: str, symbol_name: s
# Load data
with open(src_path, "rb") as binary_file, open(dest_path, "w") as c_file:
+ c_file.write('#include "dolphin/mtx/vec.h"\n\n')
+
write_array_declaration(c_file, symbol_name, scope, "Vec")
elements: list[tuple[float, ...]] = []
@@ -73,6 +75,8 @@ def convert_binary_to_cXy_c_source(src_path: str, dest_path: str, symbol_name: s
# Load data
with open(src_path, "rb") as binary_file, open(dest_path, "w") as c_file:
+ c_file.write('#include "SSystem/SComponent/c_xyz.h"\n\n')
+
write_array_declaration(c_file, symbol_name, scope, "cXy")
elements: list[tuple[float, ...]] = []
@@ -92,6 +96,8 @@ def convert_binary_to_cXy_c_source(src_path: str, dest_path: str, symbol_name: s
def convert_binary_to_GXColor_c_source(src_path: str, dest_path: str, symbol_name: str, scope: str):
# Load data
with open(src_path, "rb") as binary_file, open(dest_path, "w") as c_file:
+
+ c_file.write('#include "dolphin/gx/GXStruct.h"\n\n')
write_array_declaration(c_file, symbol_name, scope, "GXColor")