mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-25 18:05:12 -04:00
Preserve legacy overlay keys for default camera component order
(cherry picked from commit 5478e5cfd1)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user