From 2fdc8f35ccf66b1c1dbd0b71bae44f1b58e27051 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Tue, 14 Jul 2026 10:55:14 -0400 Subject: [PATCH] Asset extractor: Include headers that define Vec/cXy/GXColor --- tools/converters/extract_model_data.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/converters/extract_model_data.py b/tools/converters/extract_model_data.py index bd05e7a32..183a93ee0 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")