From fd244d268c103cdf7f87357499db8a2d0461d928 Mon Sep 17 00:00:00 2001 From: madeline Date: Mon, 6 Apr 2026 23:20:58 -0700 Subject: [PATCH] adjust dol sightDL address based on version --- src/d/actor/d_a_player.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/d/actor/d_a_player.cpp b/src/d/actor/d_a_player.cpp index d6f7c54a49..f56a8399cd 100644 --- a/src/d/actor/d_a_player.cpp +++ b/src/d/actor/d_a_player.cpp @@ -369,7 +369,24 @@ JKRHeap* daPy_anmHeap_c::setAnimeHeap() { #if !PLATFORM_WII #if TARGET_PC #include "dusk/dvd_asset.hpp" -static const u8* l_sightDL_get() { static u8 buf[0x89]; static bool _ = (dusk::LoadDolAsset(buf, 0x803BA0C0, 0x89), true); return buf; } +static const u8* l_sightDL_get() { + static u8 buf[0x89]; + static bool _ = ( + dusk::LoadDolAsset( + buf, + #if VERSION_GCN_PAL + 0x803BBDA0, + #elif VERSION_GCN_JPN + 0x803B4220, + #elif VERSION_GCN_USA + 0x803BA0C0, + #endif + 0x89 + ), + true + ); + return buf; +} #define l_sightDL (l_sightDL_get()) #else #include "assets/l_sightDL__d_a_player.h"