1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-16 12:54:40 +00:00

Write source with static for overlays using HACK_IS_STATIC_ON hack

This commit is contained in:
Dragorn421 2025-02-05 19:04:30 +01:00
parent 956b3b4a96
commit 11e8d23027
No known key found for this signature in database
GPG key ID: 381AEBAF3D429335
3 changed files with 17 additions and 10 deletions

View file

@ -376,6 +376,8 @@ class S16ArrayResource(CDataResource):
super().__init__(file, range_start, name)
def get_c_declaration_base(self):
if hasattr(self, "HACK_IS_STATIC_ON"):
return f"s16 {self.symbol_name}[{self.cdata_ext.size // self.elem_cdata_ext.size}]"
return f"s16 {self.symbol_name}[]"
def get_c_reference(self, resource_offset: int):