Preserve legacy overlay keys for default camera component order

(cherry picked from commit 5478e5cfd1)
This commit is contained in:
Matthew Stanley
2026-10-08 21:30:20 -07:00
parent 4fca2d27d8
commit 0ca9c3a645
+6 -1
View File
@@ -246,7 +246,12 @@ uint32_t overlay_codegen_config_hash(const GameConfig& c) {
h.u32(site.queue_guard ? 1u : 0u);
}
h.u32(c.ws_aspect_cone.forward_addr);
for (uint32_t value : c.ws_aspect_cone.forward_offsets) h.u32(value);
// Preserve cache identities for titles using the existing component order.
// A non-default order changes runtime participation and needs a new key.
if (c.ws_aspect_cone.forward_offsets != std::array<uint32_t, 3>{0u, 2u, 4u}) {
h.u32(0x41584953u); // AXIS
for (uint32_t value : c.ws_aspect_cone.forward_offsets) h.u32(value);
}
h.u32(c.ws_aspect_cone.object_type_offset);
h.u32(c.ws_aspect_cone.object_reg);
h.u32(c.ws_aspect_cone.x_reg);