Files
izzy2lostandClaude Opus 5 6c82d0f413 Align the remaining __OTR__ asset declarations
Torch emits ALIGN_ASSET(2) for individual texture declarations but not for
the table and ptrlist declarations, leaving 270 of them with alignment 1:

    static const ALIGN_ASSET(2) char water_skybox_texture_00000[] = "__OTR__…/water.0";
    static const char water_skybox_ptrlist[] = "__OTR__…/water_skybox_ptrlist";

The macro is there because gfx_check_image_signature() rejects odd addresses
before it looks for the marker. In an arm64 build 81 of the 270 landed on odd
addresses, where the path string is used as raw texture data instead of being
resolved. Which ones land badly depends only on how the linker packs .rodata,
so it varies by toolchain.

This fixes the generated headers; Torch's codegen needs the same change or
regenerating them reintroduces it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-03 10:39:27 -04:00

39 lines
1.8 KiB
C

#pragma once
static const ALIGN_ASSET(2) char effect_0B000008[] = "__OTR__textures/effect/flower.00008";
static const ALIGN_ASSET(2) char effect_0B000808[] = "__OTR__textures/effect/flower.00808";
static const ALIGN_ASSET(2) char effect_0B001008[] = "__OTR__textures/effect/flower.01008";
static const ALIGN_ASSET(2) char effect_0B001808[] = "__OTR__textures/effect/flower.01808";
static const ALIGN_ASSET(2) char flower_bubbles_textures_ptr_0B002008[] = "__OTR__textures/effect/flower_bubbles_textures_ptr_0B002008";
static const ALIGN_ASSET(2) char effect_0B002020[] = "__OTR__textures/effect/lava_bubble.02020";
static const ALIGN_ASSET(2) char effect_0B002820[] = "__OTR__textures/effect/lava_bubble.02820";
static const ALIGN_ASSET(2) char effect_0B003020[] = "__OTR__textures/effect/lava_bubble.03020";
static const ALIGN_ASSET(2) char effect_0B003820[] = "__OTR__textures/effect/lava_bubble.03820";
static const ALIGN_ASSET(2) char effect_0B004020[] = "__OTR__textures/effect/lava_bubble.04020";
static const ALIGN_ASSET(2) char effect_0B004820[] = "__OTR__textures/effect/lava_bubble.04820";
static const ALIGN_ASSET(2) char effect_0B005020[] = "__OTR__textures/effect/lava_bubble.05020";
static const ALIGN_ASSET(2) char effect_0B005820[] = "__OTR__textures/effect/lava_bubble.05820";
static const ALIGN_ASSET(2) char lava_bubble_ptr_0B006020[] = "__OTR__textures/effect/lava_bubble_ptr_0B006020";
static const ALIGN_ASSET(2) char effect_0B006048[] = "__OTR__textures/effect/bubble.06048";
static const ALIGN_ASSET(2) char bubble_ptr_0B006848[] = "__OTR__textures/effect/bubble_ptr_0B006848";
static const ALIGN_ASSET(2) char effect_0B00684C[] = "__OTR__textures/effect/tiny_bubble.0684C";
static const ALIGN_ASSET(2) char effect_0B006AD8[] = "__OTR__textures/effect/tiny_bubble.06AD8";