summaryrefslogtreecommitdiff
path: root/libs/JSystem/J2DGraph/J2DWindow.cpp
diff options
context:
space:
mode:
authorJulgodis <>2021-04-07 09:16:47 +0200
committerJulgodis <>2021-04-07 09:16:47 +0200
commitdca1d2a1c032f239c65aa1b7767132c12e89f628 (patch)
tree103f2574cfa7c6b9f19df522447d0b58861b60ba /libs/JSystem/J2DGraph/J2DWindow.cpp
parented1ee30dd20ab15ba73b987f1e59b0dfc16d09b2 (diff)
detect more floats/doubles, including from relocations
Diffstat (limited to 'libs/JSystem/J2DGraph/J2DWindow.cpp')
-rw-r--r--libs/JSystem/J2DGraph/J2DWindow.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/libs/JSystem/J2DGraph/J2DWindow.cpp b/libs/JSystem/J2DGraph/J2DWindow.cpp
index 385a41b916..05dbbd7b8f 100644
--- a/libs/JSystem/J2DGraph/J2DWindow.cpp
+++ b/libs/JSystem/J2DGraph/J2DWindow.cpp
@@ -59,19 +59,19 @@ struct JGeometry {
struct J2DAnmBase {};
-struct J2DAnmColor {};
-
-struct J2DAnmTextureSRTKey {};
+struct J2DAnmTevRegKey {};
struct J2DAnmVtxColor {};
-struct J2DAnmVisibilityFull {};
-
struct J2DAnmTransform {};
+struct J2DAnmTextureSRTKey {};
+
+struct J2DAnmVisibilityFull {};
+
struct J2DAnmTexPattern {};
-struct J2DAnmTevRegKey {};
+struct J2DAnmColor {};
struct J2DPane {
/* 80020158 */ void setAlpha(u8);
@@ -361,13 +361,13 @@ asm J2DWindow::J2DWindow(J2DPane* param_0, JSURandomInputStream* param_1, JKRArc
SECTION_RODATA static u8 const lit_1831[16] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
-SECTION_DEAD void* const cg_803A1C10 = (void*)(&lit_1831);
+COMPILER_STRIP_GATE(803A1C10, &lit_1831);
/* 803A1C20-803A1C30 02E280 0010+00 1/1 0/0 0/0 .rodata @1849 */
SECTION_RODATA static u8 const lit_1849[16] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
-SECTION_DEAD void* const cg_803A1C20 = (void*)(&lit_1849);
+COMPILER_STRIP_GATE(803A1C20, &lit_1849);
/* 80456240-80456248 004840 0008+00 7/7 0/0 0/0 .sdata2 @1971 */
SECTION_SDATA2 static f64 lit_1971 = 4503601774854144.0 /* cast s32 to float */;
@@ -578,7 +578,7 @@ asm void J2DWindow::setTevMode(JUTTexture* param_0, JUtility::TColor param_1,
SECTION_RODATA static u8 const lit_3028[16] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
-SECTION_DEAD void* const cg_803A1C30 = (void*)(&lit_3028);
+COMPILER_STRIP_GATE(803A1C30, &lit_3028);
/* 802FBE60-802FBEDC 2F67A0 007C+00 1/0 0/0 0/0 .text getFrameTexture__9J2DWindowCFUcUc
*/
@@ -620,7 +620,7 @@ SECTION_RODATA static u8 const lit_3037[20 + 4 /* padding */] = {
0x00,
0x00,
};
-SECTION_DEAD void* const cg_803A1C40 = (void*)(&lit_3037);
+COMPILER_STRIP_GATE(803A1C40, &lit_3037);
/* 802FBEDC-802FBF98 2F681C 00BC+00 1/0 0/0 0/0 .text isUsed__9J2DWindowFPC7ResTIMG */
#pragma push