Fix: add header to align soh.otr file assets and fix asset crash for Mac #2819
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For some reason on mac release builds, our custom assets in the
soh.otr
file were causing crashes when read. An Investigation was done here #2766 and showed that by aligning the custom asset names similar to the original game asset headers, the issue would go away.I've created an
soh_assets.h
header file that contains exports for aligned assets that needed to be fixed to prevent crashing on mac. This file will need to be maintained in the future as we add new assets.Also updated other references to stringed assets like the MQ title sub title and greg green rupee for item tracker to use the aligned vars.
Not included in this PR is assets used by LUS directly, e.g. the input viewer button icons. Not sure if this is the same problem, but I found the input viewer just doesn't display anything for Mac. If a similar solution works for that, it would need to be applied in LUS directly.
Should fix #2766
Build Artifacts