This commit is contained in:
lepelog
2021-04-01 00:15:05 +02:00
parent 0b09be34fb
commit 87bc0e711b
6 changed files with 45 additions and 56 deletions
+3 -16
View File
@@ -7,12 +7,6 @@
#include "dol2asm.h"
#include "dolphin/types.h"
//
// Forward References:
//
extern "C" extern void* g_cAPI_Interface[6];
//
// External References:
//
@@ -24,20 +18,13 @@ void mDoGph_AfterOfDraw();
void mDoGph_Painter();
void mDoGph_Create();
extern "C" void mDoGph_BlankingON__Fv();
extern "C" void mDoGph_BlankingOFF__Fv();
extern "C" void mDoGph_BeforeOfDraw__Fv();
extern "C" void mDoGph_AfterOfDraw__Fv();
extern "C" void mDoGph_Painter__Fv();
extern "C" void mDoGph_Create__Fv();
//
// Declarations:
//
/* ############################################################################################## */
/* 803C3528-803C3540 0018+00 s=0 e=3 z=0 None .data g_cAPI_Interface */
SECTION_DATA void* g_cAPI_Interface[6] = {
(void*)mDoGph_Create__Fv, (void*)mDoGph_BeforeOfDraw__Fv, (void*)mDoGph_AfterOfDraw__Fv,
(void*)mDoGph_Painter__Fv, (void*)mDoGph_BlankingON__Fv, (void*)mDoGph_BlankingOFF__Fv,
cAPIGph_Mthd g_cAPI_Interface[6] = {
mDoGph_Create, mDoGph_BeforeOfDraw, mDoGph_AfterOfDraw,
mDoGph_Painter, mDoGph_BlankingON, mDoGph_BlankingOFF,
};
+7 -39
View File
@@ -4,57 +4,25 @@
//
#include "SSystem/SComponent/c_API_graphic.h"
#include "SSystem/SComponent/c_API.h"
#include "dol2asm.h"
#include "dolphin/types.h"
//
// Forward References:
//
void cAPIGph_Painter();
void cAPIGph_BeforeOfDraw();
void cAPIGph_AfterOfDraw();
extern "C" void cAPIGph_Painter__Fv();
extern "C" void cAPIGph_BeforeOfDraw__Fv();
extern "C" void cAPIGph_AfterOfDraw__Fv();
//
// External References:
//
extern "C" extern void* g_cAPI_Interface[6];
//
// Declarations:
//
/* 802632C8-802632F8 0030+00 s=0 e=1 z=0 None .text cAPIGph_Painter__Fv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void cAPIGph_Painter() {
nofralloc
#include "asm/SSystem/SComponent/c_API_graphic/cAPIGph_Painter__Fv.s"
void cAPIGph_Painter(void) {
g_cAPI_Interface[3]();
}
#pragma pop
/* 802632F8-80263328 0030+00 s=0 e=1 z=0 None .text cAPIGph_BeforeOfDraw__Fv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void cAPIGph_BeforeOfDraw() {
nofralloc
#include "asm/SSystem/SComponent/c_API_graphic/cAPIGph_BeforeOfDraw__Fv.s"
void cAPIGph_BeforeOfDraw(void) {
g_cAPI_Interface[1]();
}
#pragma pop
/* 80263328-80263358 0030+00 s=0 e=1 z=0 None .text cAPIGph_AfterOfDraw__Fv */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm void cAPIGph_AfterOfDraw() {
nofralloc
#include "asm/SSystem/SComponent/c_API_graphic/cAPIGph_AfterOfDraw__Fv.s"
void cAPIGph_AfterOfDraw(void) {
g_cAPI_Interface[2]();
}
#pragma pop
+1 -1
View File
@@ -3,7 +3,7 @@
// Translation Unit: c_m3d_g_cyl
//
#include "SSystem/SComponent/c_m3d_g_cyl.h"
// #include "SSystem/SComponent/c_m3d_g_cyl.h"
#include "dol2asm.h"
#include "dolphin/types.h"