19 lines
514 B
Python
19 lines
514 B
Python
def binary_res(path, suffix):
|
|
# _binary_res_gfx_blocksets_overworld_bst_start
|
|
name = path.replace('/', '_').replace('.', '_')
|
|
return f"&_binary_res_{name}_{suffix}"
|
|
|
|
def start_size_value(path):
|
|
if path is None:
|
|
return [
|
|
"0,",
|
|
"0,",
|
|
]
|
|
else:
|
|
start = binary_res(path, "start")
|
|
size = binary_res(path, "size")
|
|
return [
|
|
f"reinterpret_cast<uint8_t*>({start}),",
|
|
f"reinterpret_cast<uint32_t>({size}),",
|
|
]
|