mirror of
https://github.com/zeldaret/tp
synced 2026-06-14 14:28:14 -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_scope
|
||||
//
|
||||
|
||||
#include "d/dolzel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/d_scope.h"
|
||||
@@ -14,7 +9,6 @@
|
||||
#include "m_Do/m_Do_graphic.h"
|
||||
#include "JSystem/J2DGraph/J2DOrthoGraph.h"
|
||||
|
||||
/* 803BB648-803BB66C 018768 0024+00 2/3 0/0 0/0 .data init_process */
|
||||
typedef void (dScope_c::*initFunc)();
|
||||
initFunc init_process[] = {
|
||||
&dScope_c::open_init,
|
||||
@@ -22,7 +16,6 @@ initFunc init_process[] = {
|
||||
&dScope_c::close_init,
|
||||
};
|
||||
|
||||
/* 803BB690-803BB6B4 0187B0 0024+00 1/2 0/0 0/0 .data move_process */
|
||||
typedef void (dScope_c::*moveFunc)();
|
||||
moveFunc move_process[] = {
|
||||
&dScope_c::open_proc,
|
||||
@@ -30,7 +23,6 @@ moveFunc move_process[] = {
|
||||
&dScope_c::close_proc,
|
||||
};
|
||||
|
||||
/* 80193690-80193960 18DFD0 02D0+00 0/0 1/1 0/0 .text __ct__8dScope_cFUc */
|
||||
dScope_c::dScope_c(u8 param_0) : field_0x58(-1), field_0x5c(-1) {
|
||||
field_0x8d = param_0;
|
||||
ResTIMG* mp_image = (ResTIMG*)dComIfGp_getMain2DArchive()->getResource('TIMG', "wipe_00.bti");
|
||||
@@ -67,7 +59,6 @@ dScope_c::dScope_c(u8 param_0) : field_0x58(-1), field_0x5c(-1) {
|
||||
(this->*init_process[mProcess])();
|
||||
}
|
||||
|
||||
/* 8019396C-80193B90 18E2AC 0224+00 1/0 0/0 0/0 .text __dt__8dScope_cFv */
|
||||
dScope_c::~dScope_c() {
|
||||
if (mHawkEyeScrn != NULL) {
|
||||
delete mHawkEyeScrn;
|
||||
@@ -114,7 +105,6 @@ dScope_c::~dScope_c() {
|
||||
dMeter2Info_setScopeZoomPointer(0);
|
||||
}
|
||||
|
||||
/* 80193B90-80193C68 18E4D0 00D8+00 1/0 0/0 0/0 .text _execute__8dScope_cFUl */
|
||||
int dScope_c::_execute(u32) {
|
||||
u8 old_proc = mProcess;
|
||||
(this->*move_process[mProcess])();
|
||||
@@ -138,7 +128,6 @@ int dScope_c::_execute(u32) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* 80193C68-80193FA0 18E5A8 0338+00 1/0 0/0 0/0 .text draw__8dScope_cFv */
|
||||
void dScope_c::draw() {
|
||||
dComIfGp_getCurrentGrafPort()->setup2D();
|
||||
f32 temp_f1 = mScale;
|
||||
@@ -178,19 +167,16 @@ void dScope_c::draw() {
|
||||
}
|
||||
|
||||
|
||||
/* 80193FA0-80193FB4 18E8E0 0014+00 1/0 0/0 0/0 .text isDead__8dScope_cFv */
|
||||
bool dScope_c::isDead() {
|
||||
return mIsDead != false ? 1 : 0;
|
||||
}
|
||||
|
||||
/* 80193FB4-80193FD0 18E8F4 001C+00 1/0 0/0 0/0 .text open_init__8dScope_cFv */
|
||||
void dScope_c::open_init() {
|
||||
mScale = 3.0f;
|
||||
mAlpha = 0.0f;
|
||||
mOpenTimer = 0;
|
||||
}
|
||||
|
||||
/* 80193FD0-80194048 18E910 0078+00 1/0 0/0 0/0 .text open_proc__8dScope_cFv */
|
||||
void dScope_c::open_proc() {
|
||||
mOpenTimer++;
|
||||
mScale = 3.0f - (mOpenTimer / 5.0f) * 1.5f;
|
||||
@@ -203,16 +189,12 @@ void dScope_c::open_proc() {
|
||||
}
|
||||
}
|
||||
|
||||
/* 80194048-8019404C 18E988 0004+00 1/0 0/0 0/0 .text move_init__8dScope_cFv */
|
||||
void dScope_c::move_init() {}
|
||||
|
||||
/* 8019404C-80194050 18E98C 0004+00 1/0 0/0 0/0 .text move_proc__8dScope_cFv */
|
||||
void dScope_c::move_proc() {}
|
||||
|
||||
/* 80194050-80194054 18E990 0004+00 1/0 0/0 0/0 .text close_init__8dScope_cFv */
|
||||
void dScope_c::close_init() {}
|
||||
|
||||
/* 80194054-801940D4 18E994 0080+00 1/0 0/0 0/0 .text close_proc__8dScope_cFv */
|
||||
void dScope_c::close_proc() {
|
||||
if (mOpenTimer > 0) {
|
||||
mOpenTimer--;
|
||||
|
||||
Reference in New Issue
Block a user