mirror of
https://github.com/zeldaret/tp
synced 2026-06-26 18:32:08 -04:00
project cleanup (#2895)
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
//
|
||||
// Generated By: dol2asm
|
||||
// Translation Unit: d/d_select_cursor
|
||||
//
|
||||
|
||||
#include "d/dolzel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/d_select_cursor.h"
|
||||
@@ -11,7 +6,6 @@
|
||||
#include "JSystem/J2DGraph/J2DAnimation.h"
|
||||
#include "JSystem/J2DGraph/J2DAnmLoader.h"
|
||||
|
||||
/* 801941E4-80194220 18EB24 003C+00 1/1 0/0 0/0 .text __ct__19dSelect_cursorHIO_cFv */
|
||||
dSelect_cursorHIO_c::dSelect_cursorHIO_c() {
|
||||
field_0x8 = 1.0f;
|
||||
mXAxisExpansion = 1.0f;
|
||||
@@ -23,8 +17,6 @@ dSelect_cursorHIO_c::dSelect_cursorHIO_c() {
|
||||
mDebugON = false;
|
||||
}
|
||||
|
||||
/* 80194220-801949EC 18EB60 07CC+00 0/0 14/14 0/0 .text __ct__16dSelect_cursor_cFUcfP10JKRArchive
|
||||
*/
|
||||
dSelect_cursor_c::dSelect_cursor_c(u8 param_0, f32 param_1, JKRArchive* param_2) {
|
||||
static char* blo_name[4] = {
|
||||
"zelda_select_cursor_4parts.blo",
|
||||
@@ -204,7 +196,6 @@ dSelect_cursor_c::dSelect_cursor_c(u8 param_0, f32 param_1, JKRArchive* param_2)
|
||||
}
|
||||
|
||||
|
||||
/* 801949EC-80194C30 18F32C 0244+00 1/0 0/0 0/0 .text __dt__16dSelect_cursor_cFv */
|
||||
dSelect_cursor_c::~dSelect_cursor_c() {
|
||||
delete mpScreen;
|
||||
mpScreen = NULL;
|
||||
@@ -250,7 +241,6 @@ dSelect_cursor_c::~dSelect_cursor_c() {
|
||||
}
|
||||
}
|
||||
|
||||
/* 80194C30-80194CC0 18F570 0090+00 1/0 0/0 0/0 .text draw__16dSelect_cursor_cFv */
|
||||
void dSelect_cursor_c::draw() {
|
||||
mpPaneMgr->getAlphaRate();
|
||||
update();
|
||||
@@ -262,7 +252,6 @@ void dSelect_cursor_c::draw() {
|
||||
}
|
||||
}
|
||||
|
||||
/* 80194CC0-801950F4 18F600 0434+00 1/1 0/0 0/0 .text update__16dSelect_cursor_cFv */
|
||||
void dSelect_cursor_c::update() {
|
||||
f32 fVar1 = 1.0f;
|
||||
if (field_0xb6 == 3) {
|
||||
@@ -355,7 +344,6 @@ void dSelect_cursor_c::update() {
|
||||
}
|
||||
}
|
||||
|
||||
/* 801950F4-801951B0 18FA34 00BC+00 0/0 30/30 0/0 .text setPos__16dSelect_cursor_cFffP7J2DPaneb */
|
||||
void dSelect_cursor_c::setPos(f32 i_posX, f32 i_posY, J2DPane* i_pane, bool i_scaleBounds) {
|
||||
mpPane = i_pane;
|
||||
setPos(i_posX,i_posY);
|
||||
@@ -391,7 +379,6 @@ void dSelect_cursor_c::setPos(f32 i_posX, f32 i_posY, J2DPane* i_pane, bool i_sc
|
||||
|
||||
}
|
||||
|
||||
/* 801951B0-801951C8 18FAF0 0018+00 0/0 24/24 0/0 .text setParam__16dSelect_cursor_cFfffff */
|
||||
void dSelect_cursor_c::setParam(f32 i_param1, f32 i_param2, f32 i_param3, f32 i_param4,
|
||||
f32 i_param5) {
|
||||
mParam1 = i_param1;
|
||||
@@ -401,7 +388,6 @@ void dSelect_cursor_c::setParam(f32 i_param1, f32 i_param2, f32 i_param3, f32 i_
|
||||
mParam5 = i_param5;
|
||||
}
|
||||
|
||||
/* 801951C8-801952A0 18FB08 00D8+00 0/0 14/14 0/0 .text setScale__16dSelect_cursor_cFf */
|
||||
void dSelect_cursor_c::setScale(f32 i_scale) {
|
||||
J2DPane* pane = mpPaneMgr->getPanePtr();
|
||||
pane->scale(i_scale,i_scale);
|
||||
@@ -420,7 +406,6 @@ void dSelect_cursor_c::setScale(f32 i_scale) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 801952A0-80195330 18FBE0 0090+00 0/0 77/77 0/0 .text setAlphaRate__16dSelect_cursor_cFf */
|
||||
void dSelect_cursor_c::setAlphaRate(f32 i_alphaRate) {
|
||||
if (i_alphaRate > 0.0f) {
|
||||
if (mpPaneMgr->isVisible() == 0) {
|
||||
@@ -436,7 +421,6 @@ void dSelect_cursor_c::setAlphaRate(f32 i_alphaRate) {
|
||||
mpPaneMgr->setAlphaRate(i_alphaRate);
|
||||
}
|
||||
|
||||
/* 80195330-801953CC 18FC70 009C+00 0/0 1/1 0/0 .text addAlpha__16dSelect_cursor_cFv */
|
||||
int dSelect_cursor_c::addAlpha() {
|
||||
s16 alpha_timer = mpPaneMgr->getAlphaTimer();
|
||||
|
||||
@@ -455,7 +439,6 @@ int dSelect_cursor_c::addAlpha() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* 801953CC-80195460 18FD0C 0094+00 0/0 1/1 0/0 .text decAlpha__16dSelect_cursor_cFv */
|
||||
int dSelect_cursor_c::decAlpha() {
|
||||
s16 alpha_timer = mpPaneMgr->getAlphaTimer();
|
||||
|
||||
@@ -473,8 +456,6 @@ int dSelect_cursor_c::decAlpha() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* 80195460-801955F0 18FDA0 0190+00 1/1 0/0 0/0 .text
|
||||
* setBpkAnimation__16dSelect_cursor_cFP11J2DAnmColor */
|
||||
void dSelect_cursor_c::setBpkAnimation(J2DAnmColor* param_0) {
|
||||
switch (mNameIdx) {
|
||||
case 0: {
|
||||
@@ -497,8 +478,6 @@ void dSelect_cursor_c::setBpkAnimation(J2DAnmColor* param_0) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 801955F0-80195724 18FF30 0134+00 1/1 0/0 0/0 .text
|
||||
* setBtk0Animation__16dSelect_cursor_cFP19J2DAnmTextureSRTKey */
|
||||
void dSelect_cursor_c::setBtk0Animation(J2DAnmTextureSRTKey* param_0) {
|
||||
switch (mNameIdx) {
|
||||
case 0: {
|
||||
@@ -523,7 +502,6 @@ void dSelect_cursor_c::setBtk0Animation(J2DAnmTextureSRTKey* param_0) {
|
||||
}
|
||||
}
|
||||
|
||||
/* 80195724-801958E0 190064 01BC+00 1/1 0/0 0/0 .text setCursorAnimation__16dSelect_cursor_cFv */
|
||||
void dSelect_cursor_c::setCursorAnimation() {
|
||||
f32 fVar1 = 1.0f;
|
||||
if (field_0xb6 == 3) {
|
||||
@@ -555,14 +533,10 @@ void dSelect_cursor_c::setCursorAnimation() {
|
||||
}
|
||||
|
||||
|
||||
/* 801958E0-80195940 190220 0060+00 1/1 0/0 0/0 .text
|
||||
* setBckAnimation__16dSelect_cursor_cFP18J2DAnmTransformKey */
|
||||
void dSelect_cursor_c::setBckAnimation(J2DAnmTransformKey* param_0) {
|
||||
mpScreen->search('ssel_ico')->setAnimation((J2DAnmTransform*)param_0);
|
||||
}
|
||||
|
||||
/* 80195940-80195978 190280 0038+00 1/1 0/0 0/0 .text moveCenter__16dSelect_cursor_cFP7J2DPaneff
|
||||
*/
|
||||
void dSelect_cursor_c::moveCenter(J2DPane* i_pane, f32 i_x, f32 i_y) {
|
||||
i_pane->translate(i_x,i_y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user