summaryrefslogtreecommitdiff
path: root/src/d/d_simple_model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/d/d_simple_model.cpp')
-rw-r--r--src/d/d_simple_model.cpp179
1 files changed, 83 insertions, 96 deletions
diff --git a/src/d/d_simple_model.cpp b/src/d/d_simple_model.cpp
index 9c318ddedd..70af8cbe33 100644
--- a/src/d/d_simple_model.cpp
+++ b/src/d/d_simple_model.cpp
@@ -1,59 +1,54 @@
-//
+//
// Generated By: dol2asm
// Translation Unit: d/d_simple_model
-//
+//
+#include "d/d_simple_model.h"
#include "dol2asm.h"
#include "dolphin/types.h"
-#include "d/d_simple_model.h"
-//
+//
// Types:
-//
+//
-struct modelList_c {
-};
+struct modelList_c {};
-struct J3DModelData {
-};
+struct J3DModelData {};
struct diff_model_c {
- /* 80048D60 */ diff_model_c();
- /* 800490EC */ void create(J3DModelData*, int, u8);
- /* 800491F4 */ void getModelData();
- /* 80049210 */ void remove(int);
- /* 80049270 */ void draw();
- /* 80049368 */ void init();
- /* 80049388 */ void isSame(J3DModelData*, int);
- /* 800493FC */ void getRoomNo();
- /* 80049408 */ void insert(modelList_c*);
+ /* 80048D60 */ diff_model_c();
+ /* 800490EC */ void create(J3DModelData*, int, u8);
+ /* 800491F4 */ void getModelData();
+ /* 80049210 */ void remove(int);
+ /* 80049270 */ void draw();
+ /* 80049368 */ void init();
+ /* 80049388 */ void isSame(J3DModelData*, int);
+ /* 800493FC */ void getRoomNo();
+ /* 80049408 */ void insert(modelList_c*);
};
-struct J3DModel {
-};
+struct J3DModel {};
struct dSmplMdl_draw_c {
- /* 80048CB4 */ dSmplMdl_draw_c();
- /* 80048D80 */ ~dSmplMdl_draw_c();
- /* 80048E0C */ void draw();
- /* 80048EBC */ void entry(J3DModel*, int);
- /* 80048F70 */ void addModel(J3DModelData*, int, u8);
- /* 80049058 */ void removeModel(J3DModelData*, int);
+ /* 80048CB4 */ dSmplMdl_draw_c();
+ /* 80048D80 */ ~dSmplMdl_draw_c();
+ /* 80048E0C */ void draw();
+ /* 80048EBC */ void entry(J3DModel*, int);
+ /* 80048F70 */ void addModel(J3DModelData*, int, u8);
+ /* 80049058 */ void removeModel(J3DModelData*, int);
};
-struct dKy_tevstr_c {
-};
+struct dKy_tevstr_c {};
struct dScnKy_env_light_c {
- /* 801A4DA0 */ void setLightTevColorType_MAJI(J3DModelData*, dKy_tevstr_c*);
+ /* 801A4DA0 */ void setLightTevColorType_MAJI(J3DModelData*, dKy_tevstr_c*);
};
-struct JKRSolidHeap {
-};
+struct JKRSolidHeap {};
-//
+//
// Forward References:
-//
+//
static void dSmplMdl_modelUpdateDL(J3DModel*);
@@ -74,9 +69,9 @@ extern "C" void isSame__12diff_model_cFP12J3DModelDatai();
extern "C" void getRoomNo__12diff_model_cFv();
extern "C" void insert__12diff_model_cFP11modelList_c();
-//
+//
// External References:
-//
+//
void mDoExt_modelUpdateDL(J3DModel*);
void mDoExt_createSolidHeapFromGameToCurrent(u32, u32);
@@ -115,201 +110,193 @@ extern "C" extern u8 g_dComIfG_gameInfo[122384];
extern "C" extern u8 g_env_light[4880];
extern "C" extern u8 j3dSys[284];
-//
+//
// Declarations:
-//
+//
-/* 80048C54-80048CB4 0060+00 s=1 e=0 z=0 None .text dSmplMdl_modelUpdateDL__FP8J3DModel */
+/* 80048C54-80048CB4 0060+00 s=1 e=0 z=0 None .text dSmplMdl_modelUpdateDL__FP8J3DModel */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm static void dSmplMdl_modelUpdateDL(J3DModel* param_0) {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/dSmplMdl_modelUpdateDL__FP8J3DModel.s"
}
#pragma pop
-
/* ############################################################################################## */
-/* 803A82F8-803A8308 000C+04 s=2 e=0 z=0 None .data __vt__15dSmplMdl_draw_c */
+/* 803A82F8-803A8308 000C+04 s=2 e=0 z=0 None .data __vt__15dSmplMdl_draw_c */
SECTION_DATA static void* __vt__15dSmplMdl_draw_c[3 + 1 /* padding */] = {
- (void*)NULL,
- (void*)NULL,
- (void*)__dt__15dSmplMdl_draw_cFv,
- /* padding */
- NULL,
+ (void*)NULL,
+ (void*)NULL,
+ (void*)__dt__15dSmplMdl_draw_cFv,
+ /* padding */
+ NULL,
};
-/* 80048CB4-80048D60 00AC+00 s=0 e=1 z=0 None .text __ct__15dSmplMdl_draw_cFv */
+/* 80048CB4-80048D60 00AC+00 s=0 e=1 z=0 None .text __ct__15dSmplMdl_draw_cFv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm dSmplMdl_draw_c::dSmplMdl_draw_c() {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/__ct__15dSmplMdl_draw_cFv.s"
}
#pragma pop
-
-/* 80048D60-80048D80 0020+00 s=1 e=0 z=0 None .text __ct__12diff_model_cFv */
+/* 80048D60-80048D80 0020+00 s=1 e=0 z=0 None .text __ct__12diff_model_cFv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm diff_model_c::diff_model_c() {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/__ct__12diff_model_cFv.s"
}
#pragma pop
-
-/* 80048D80-80048E0C 008C+00 s=1 e=0 z=0 None .text __dt__15dSmplMdl_draw_cFv */
+/* 80048D80-80048E0C 008C+00 s=1 e=0 z=0 None .text __dt__15dSmplMdl_draw_cFv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm dSmplMdl_draw_c::~dSmplMdl_draw_c() {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/__dt__15dSmplMdl_draw_cFv.s"
}
#pragma pop
-
-/* 80048E0C-80048EBC 00B0+00 s=0 e=1 z=0 None .text draw__15dSmplMdl_draw_cFv */
+/* 80048E0C-80048EBC 00B0+00 s=0 e=1 z=0 None .text draw__15dSmplMdl_draw_cFv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void dSmplMdl_draw_c::draw() {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/draw__15dSmplMdl_draw_cFv.s"
}
#pragma pop
-
-/* 80048EBC-80048F70 00B4+00 s=0 e=1 z=0 None .text entry__15dSmplMdl_draw_cFP8J3DModeli */
+/* 80048EBC-80048F70 00B4+00 s=0 e=1 z=0 None .text entry__15dSmplMdl_draw_cFP8J3DModeli */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void dSmplMdl_draw_c::entry(J3DModel* param_0, int param_1) {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/entry__15dSmplMdl_draw_cFP8J3DModeli.s"
}
#pragma pop
-
-/* 80048F70-80049058 00E8+00 s=0 e=1 z=0 None .text addModel__15dSmplMdl_draw_cFP12J3DModelDataiUc */
+/* 80048F70-80049058 00E8+00 s=0 e=1 z=0 None .text
+ * addModel__15dSmplMdl_draw_cFP12J3DModelDataiUc */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void dSmplMdl_draw_c::addModel(J3DModelData* param_0, int param_1, u8 param_2) {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/addModel__15dSmplMdl_draw_cFP12J3DModelDataiUc.s"
}
#pragma pop
-
-/* 80049058-800490EC 0094+00 s=0 e=1 z=0 None .text removeModel__15dSmplMdl_draw_cFP12J3DModelDatai */
+/* 80049058-800490EC 0094+00 s=0 e=1 z=0 None .text
+ * removeModel__15dSmplMdl_draw_cFP12J3DModelDatai */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void dSmplMdl_draw_c::removeModel(J3DModelData* param_0, int param_1) {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/removeModel__15dSmplMdl_draw_cFP12J3DModelDatai.s"
}
#pragma pop
-
/* ############################################################################################## */
-/* 80451F38-80451F40 0004+04 s=1 e=0 z=0 None .sdata2 @3763 */
+/* 80451F38-80451F40 0004+04 s=1 e=0 z=0 None .sdata2 @3763 */
SECTION_SDATA2 static u8 lit_3763[4 + 4 /* padding */] = {
- 0x00, 0x00, 0x00, 0x00,
- /* padding */
- 0x00, 0x00, 0x00, 0x00,
+ 0x00,
+ 0x00,
+ 0x00,
+ 0x00,
+ /* padding */
+ 0x00,
+ 0x00,
+ 0x00,
+ 0x00,
};
-/* 800490EC-800491F4 0108+00 s=1 e=0 z=0 None .text create__12diff_model_cFP12J3DModelDataiUc */
+/* 800490EC-800491F4 0108+00 s=1 e=0 z=0 None .text create__12diff_model_cFP12J3DModelDataiUc
+ */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void diff_model_c::create(J3DModelData* param_0, int param_1, u8 param_2) {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/create__12diff_model_cFP12J3DModelDataiUc.s"
}
#pragma pop
-
-/* 800491F4-80049210 001C+00 s=2 e=0 z=0 None .text getModelData__12diff_model_cFv */
+/* 800491F4-80049210 001C+00 s=2 e=0 z=0 None .text getModelData__12diff_model_cFv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void diff_model_c::getModelData() {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/getModelData__12diff_model_cFv.s"
}
#pragma pop
-
-/* 80049210-80049270 0060+00 s=3 e=0 z=0 None .text remove__12diff_model_cFi */
+/* 80049210-80049270 0060+00 s=3 e=0 z=0 None .text remove__12diff_model_cFi */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void diff_model_c::remove(int param_0) {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/remove__12diff_model_cFi.s"
}
#pragma pop
-
-/* 80049270-80049368 00F8+00 s=1 e=0 z=0 None .text draw__12diff_model_cFv */
+/* 80049270-80049368 00F8+00 s=1 e=0 z=0 None .text draw__12diff_model_cFv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void diff_model_c::draw() {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/draw__12diff_model_cFv.s"
}
#pragma pop
-
-/* 80049368-80049388 0020+00 s=2 e=0 z=0 None .text init__12diff_model_cFv */
+/* 80049368-80049388 0020+00 s=2 e=0 z=0 None .text init__12diff_model_cFv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void diff_model_c::init() {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/init__12diff_model_cFv.s"
}
#pragma pop
-
-/* 80049388-800493FC 0074+00 s=3 e=0 z=0 None .text isSame__12diff_model_cFP12J3DModelDatai */
+/* 80049388-800493FC 0074+00 s=3 e=0 z=0 None .text isSame__12diff_model_cFP12J3DModelDatai */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void diff_model_c::isSame(J3DModelData* param_0, int param_1) {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/isSame__12diff_model_cFP12J3DModelDatai.s"
}
#pragma pop
-
-/* 800493FC-80049408 000C+00 s=2 e=0 z=0 None .text getRoomNo__12diff_model_cFv */
+/* 800493FC-80049408 000C+00 s=2 e=0 z=0 None .text getRoomNo__12diff_model_cFv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void diff_model_c::getRoomNo() {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/getRoomNo__12diff_model_cFv.s"
}
#pragma pop
-
-/* 80049408-80049420 0018+00 s=2 e=0 z=0 None .text insert__12diff_model_cFP11modelList_c */
+/* 80049408-80049420 0018+00 s=2 e=0 z=0 None .text insert__12diff_model_cFP11modelList_c */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void diff_model_c::insert(modelList_c* param_0) {
- nofralloc
+ nofralloc
#include "asm/d/d_simple_model/insert__12diff_model_cFP11modelList_c.s"
}
#pragma pop
-
-