summaryrefslogtreecommitdiff
path: root/src/d/d_select_cursor.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-01-15 01:47:29 -0500
committerGitHub <noreply@github.com>2025-01-14 22:47:29 -0800
commit2189777abfd60d8c1b9afbcc63f7c6e007f6e37e (patch)
tree4495321c2fbccbdada04483a9338e13ca18bf374 /src/d/d_select_cursor.cpp
parent36daa2588496eb4d84220274c82ea85b0723619f (diff)
Fix various issues in TUs marked `Equivalent` (#2286)
Diffstat (limited to 'src/d/d_select_cursor.cpp')
-rw-r--r--src/d/d_select_cursor.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/d/d_select_cursor.cpp b/src/d/d_select_cursor.cpp
index 30db6c75f8..3bfdb5257f 100644
--- a/src/d/d_select_cursor.cpp
+++ b/src/d/d_select_cursor.cpp
@@ -3,6 +3,8 @@
// Translation Unit: d/d_select_cursor
//
+#define NO_INLINE_DLSTBASE_DRAW
+
#include "d/d_select_cursor.h"
#include "JSystem/J2DGraph/J2DGrafContext.h"
#include "d/d_com_inf_game.h"
@@ -57,7 +59,7 @@ dSelect_cursor_c::dSelect_cursor_c(u8 param_0, f32 param_1, JKRArchive* param_2)
"",
};
- static char* btk2_name[4 + 12 /* padding */] = {
+ static char* btk2_name[4] = {
"",
"zelda_store_select_icon_02.btk",
"",
@@ -206,6 +208,13 @@ dSelect_cursor_c::dSelect_cursor_c(u8 param_0, f32 param_1, JKRArchive* param_2)
mPositionX = 0.0f;
}
+static void dummy() {
+ // Need 0x30 bytes of padding with no symbol between btk2_name$3688 and dSelect_cursor_c::__vtable
+ // This is likely caused by the vtables of abstract base classes getting put there and then stripped out.
+ // Not sure which abstract base classes could go there though.
+ static u8 padding_fakematch[0x30] = {};
+}
+
/* 801949EC-80194C30 18F32C 0244+00 1/0 0/0 0/0 .text __dt__16dSelect_cursor_cFv */
dSelect_cursor_c::~dSelect_cursor_c() {
@@ -254,7 +263,6 @@ dSelect_cursor_c::~dSelect_cursor_c() {
}
/* 80194C30-80194CC0 18F570 0090+00 1/0 0/0 0/0 .text draw__16dSelect_cursor_cFv */
-// NONMATCHING
void dSelect_cursor_c::draw() {
mpPaneMgr->getAlphaRate();
update();