mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-31 00:45:24 -04:00
adjust dol sightDL address based on version
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user