unknown_078050.h

This commit is contained in:
Ryan Myers
2021-09-17 10:00:52 -04:00
parent ffd895a0f6
commit f2e24945b7
4 changed files with 30 additions and 16 deletions
+1
View File
@@ -22,6 +22,7 @@
#include "thread30.h"
#include "unknown_00BC20.h"
#include "unknown_06B2B0.h"
#include "unknown_078050.h"
/**
* @file Contains all the code used for every menu in the game.
-3
View File
@@ -646,9 +646,6 @@ extern s16 D_800E1E2C[10];
extern s16 D_800E1E40[10];
void render_textured_rectangle(Gfx **dlist, DrawTexture *arg1,
s32 arg2, s32 arg3, u8 red, u8 green, u8 blue, u8 alpha); // Non Matching src/unknown_078050.c
void func_80078D00(Gfx**, void *element, s32, s32, f32, f32, u32, s32); //Non Matching src/unknown_078050.c
s32 get_random_number_from_range(s32, s32); // Non Matching src/unknown_070110.c
void func_8007FF88(void);
+7 -12
View File
@@ -5,7 +5,7 @@
#include "types.h"
#include "structs.h"
#include "macros.h"
#include "libultra_internal.h"
//#include "lib/src/unknown_0D24D0.h"
/************ .data ************/
@@ -24,11 +24,6 @@ u32 D_800DE4C4 = 0;
u32 D_800DE4C8 = 0;
s32 D_800DE4CC = 0;
typedef union {
void (*function)(Gfx*, s32);
void *ptr;
} unk800DE4D0;
unk800DE4D0 D_800DE4D0 = { NULL };
s32 D_800DE4D4 = 0;
s32 D_800DE4D8 = 0;
@@ -123,7 +118,7 @@ Gfx D_800DE6A8[][2] = {
{
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
gsDPSetOtherMode(DKR_OMH_1CYC_POINT_NOPERSP, DKR_OML_COMMON | G_RM_OPA_SURF | G_RM_OPA_SURF2),
}
},
};
Gfx D_800DE6E8[][2] = {
@@ -142,7 +137,7 @@ Gfx D_800DE6E8[][2] = {
{
gsDPSetCombineMode(G_CC_MODULATEIA_PRIM, G_CC_MODULATEIA_PRIM),
gsDPSetOtherMode(DKR_OMH_1CYC_POINT_NOPERSP, DKR_OML_COMMON | G_RM_XLU_SURF | G_RM_XLU_SURF2),
}
},
};
/*******************************/
@@ -208,7 +203,7 @@ void func_80077B5C(s32 red, s32 green, s32 blue) {
#ifdef NON_MATCHING
// Stack issues
void render_background(Gfx **dlist, s32 arg1, s32 arg2) {
void render_background(Gfx **dlist, s32 *arg1, s32 arg2) {
s32 sp90;
s32 sp8C;
s32 sp88;
@@ -278,18 +273,18 @@ void func_80078054(Gfx **dlist) {
gSPDisplayList((*dlist)++, D_800DE520)
}
void func_800780DC(Gfx** dlist){
void func_800780DC(Gfx **dlist) {
gSPDisplayList((*dlist)++, D_800DE4E0)
}
void func_80078100(OSSched *sc){
void func_80078100(OSSched *sc) {
osScInterruptQ = osScGetInterruptQ(sc);
osCreateMesgQueue(&D_80125EA0, &D_80125EB8,1);
osCreateMesgQueue(&D_80125EC0, &D_80125EF0,8);
osCreateMesgQueue(&D_80125ED8, &D_80125F10,8);
}
void func_80078170(u32 arg0, u32 arg1, u32 arg2){
void func_80078170(u32 arg0, u32 arg1, u32 arg2) {
D_800DE4C4 = arg0;
D_800DE4C8 = arg1;
D_800DE4C0 = arg2 << 2;
+22 -1
View File
@@ -2,8 +2,15 @@
#define _UNKNOWN_078050_H_
#include "types.h"
#include "structs.h"
#include "f3ddkr.h"
#include "lib/src/mips1/sc/sched.h"
#include "libultra_internal.h"
typedef union {
void (*function)(Gfx*, s32);
void *ptr;
} unk800DE4D0;
extern s16 D_800DE490[16];
@@ -21,7 +28,21 @@ extern s32 D_800DE4D4;
extern s32 D_800DE4D8;
extern s32 D_800DE4DC;
void func_80077B34(u8 arg0, u8 arg1, u8 arg2);
s32 func_80077A54(void);
void func_80077AAC(void *bufPtr, s32 arg1, s32 arg2);
void func_80077B34(u8 arg0, u8 arg1, u8 arg2);
void func_80077B5C(s32 red, s32 green, s32 blue);
void func_80078054(Gfx **dlist);
void func_800780DC(Gfx **dlist);
void func_80078100(OSSched *sc);
void func_80078170(u32 arg0, u32 arg1, u32 arg2);
void func_80078778(s32 arg0, s32 arg1, s32 arg2, s32 arg3);
void func_800787F0(void);
//Non Matching
void render_background(Gfx **dlist, s32 *arg1, s32 arg2);
void render_textured_rectangle(Gfx **dlist, DrawTexture *arg1,
s32 arg2, s32 arg3, u8 red, u8 green, u8 blue, u8 alpha);
void func_80078D00(Gfx**, void *element, s32, s32, f32, f32, u32, s32);
#endif