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:
parent
956b3b4a96
commit
11e8d23027
3 changed files with 17 additions and 10 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue