mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Decompile sinf.c
This commit is contained in:
@@ -0,0 +1,189 @@
|
||||
#ifndef _ABI_H_
|
||||
#define _ABI_H_
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int gain : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Aadpcm;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int gain : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Apolef;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int pad1 : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Aenvelope;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int pad1 : 8;
|
||||
/* 0x2 */ unsigned int dmem : 16;
|
||||
/* 0x4 */ unsigned int pad2 : 16;
|
||||
/* 0x6 */ unsigned int count : 16;
|
||||
} Aclearbuff;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int pad1 : 8;
|
||||
/* 0x2 */ unsigned int pad2 : 16;
|
||||
/* 0x4 */ unsigned int inL : 16;
|
||||
/* 0x6 */ unsigned int inR : 16;
|
||||
} Ainterleave;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int pad1 : 24;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Aloadbuff;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int pad1 : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Aenvmixer;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int gain : 16;
|
||||
/* 0x4 */ unsigned int dmemi : 16;
|
||||
/* 0x6 */ unsigned int dmemo : 16;
|
||||
} Amixer;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int dmem2 : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Apan;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int pitch : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Aresample;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int pad1 : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Areverb;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int pad1 : 24;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Asavebuff;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int pad1 : 24;
|
||||
/* 0x4 */ unsigned int pad2 : 2;
|
||||
/* 0x4 */ unsigned int number : 4;
|
||||
/* 0x4 */ unsigned int base : 24;
|
||||
} Asegment;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int dmemin : 16;
|
||||
/* 0x4 */ unsigned int dmemout : 16;
|
||||
/* 0x6 */ unsigned int count : 16;
|
||||
} Asetbuff;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int flags : 8;
|
||||
/* 0x2 */ unsigned int vol : 16;
|
||||
/* 0x4 */ unsigned int voltgt : 16;
|
||||
/* 0x6 */ unsigned int volrate : 16;
|
||||
} Asetvol;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int pad1 : 8;
|
||||
/* 0x2 */ unsigned int dmemin : 16;
|
||||
/* 0x4 */ unsigned int dmemout : 16;
|
||||
/* 0x6 */ unsigned int count : 16;
|
||||
} Admemmove;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int pad1 : 8;
|
||||
/* 0x2 */ unsigned int count : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Aloadadpcm;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int pad1 : 8;
|
||||
/* 0x2 */ unsigned int pad2 : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Asetloop;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int w0;
|
||||
/* 0x4 */ unsigned int w1;
|
||||
} Awords;
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Awords words;
|
||||
/* 0x0 */ Aadpcm adpcm;
|
||||
/* 0x0 */ Apolef polef;
|
||||
/* 0x0 */ Aclearbuff clearbuff;
|
||||
/* 0x0 */ Aenvelope envelope;
|
||||
/* 0x0 */ Ainterleave interleave;
|
||||
/* 0x0 */ Aloadbuff loadbuff;
|
||||
/* 0x0 */ Aenvmixer envmixer;
|
||||
/* 0x0 */ Aresample resample;
|
||||
/* 0x0 */ Areverb reverb;
|
||||
/* 0x0 */ Asavebuff savebuff;
|
||||
/* 0x0 */ Asegment segment;
|
||||
/* 0x0 */ Asetbuff setbuff;
|
||||
/* 0x0 */ Asetvol setvol;
|
||||
/* 0x0 */ Admemmove dmemmove;
|
||||
/* 0x0 */ Aloadadpcm loadadpcm;
|
||||
/* 0x0 */ Amixer mixer;
|
||||
/* 0x0 */ Asetloop setloop;
|
||||
/* 0x0 */ long long force_union_align;
|
||||
} Acmd;
|
||||
|
||||
typedef short ADPCM_STATE[16];
|
||||
|
||||
typedef short POLEF_STATE[4];
|
||||
|
||||
typedef short RESAMPLE_STATE[16];
|
||||
|
||||
typedef short ENVMIX_STATE[40];
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,386 @@
|
||||
#ifndef _GBI_H_
|
||||
#define _GBI_H_
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ short ob[3];
|
||||
/* 0x6 */ unsigned short flag;
|
||||
/* 0x8 */ short tc[2];
|
||||
/* 0xC */ unsigned char cn[4];
|
||||
} Vtx_t;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ short ob[3];
|
||||
/* 0x6 */ unsigned short flag;
|
||||
/* 0x8 */ short tc[2];
|
||||
/* 0xC */ signed char n[3];
|
||||
/* 0xF */ unsigned char a;
|
||||
} Vtx_tn;
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Vtx_t v;
|
||||
/* 0x0 */ Vtx_tn n;
|
||||
/* 0x0 */ long long force_structure_alignment;
|
||||
} Vtx;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned char flag;
|
||||
/* 0x1 */ unsigned char v[3];
|
||||
} Tri;
|
||||
|
||||
typedef long Mtx_t[4][4];
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Mtx_t m;
|
||||
/* 0x0 */ long long force_structure_alignment;
|
||||
} Mtx;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ short vscale[4];
|
||||
/* 0x8 */ short vtrans[4];
|
||||
} Vp_t;
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Vp_t vp;
|
||||
/* 0x0 */ long long force_structure_alignment;
|
||||
} Vp;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned char col[3];
|
||||
/* 0x3 */ unsigned char pad1;
|
||||
/* 0x4 */ unsigned char colc[3];
|
||||
/* 0x7 */ unsigned char pad2;
|
||||
/* 0x8 */ signed char dir[3];
|
||||
/* 0xB */ unsigned char pad3;
|
||||
} Light_t;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned char col[3];
|
||||
/* 0x3 */ unsigned char pad1;
|
||||
/* 0x4 */ unsigned char colc[3];
|
||||
/* 0x7 */ unsigned char pad2;
|
||||
} Ambient_t;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int x1;
|
||||
/* 0x4 */ int y1;
|
||||
/* 0x8 */ int x2;
|
||||
/* 0xC */ int y2;
|
||||
} Hilite_t;
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Light_t l;
|
||||
/* 0x0 */ long long force_structure_alignment[2];
|
||||
} Light;
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Ambient_t l;
|
||||
/* 0x0 */ long long force_structure_alignment[1];
|
||||
} Ambient;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[7];
|
||||
} Lightsn;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[1];
|
||||
} Lights0;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[1];
|
||||
} Lights1;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[2];
|
||||
} Lights2;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[3];
|
||||
} Lights3;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[4];
|
||||
} Lights4;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[5];
|
||||
} Lights5;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[6];
|
||||
} Lights6;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Ambient a;
|
||||
/* 0x8 */ Light l[7];
|
||||
} Lights7;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ Light l[2];
|
||||
} LookAt;
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Hilite_t h;
|
||||
/* 0x0 */ long force_structure_alignment[4];
|
||||
} Hilite;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned int par : 8;
|
||||
/* 0x2 */ unsigned int len : 16;
|
||||
/* 0x4 */ unsigned int addr;
|
||||
} Gdma;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ int pad : 24;
|
||||
/* 0x4 */ Tri tri;
|
||||
} Gtri;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ int pad1 : 24;
|
||||
/* 0x4 */ int pad2 : 24;
|
||||
/* 0x7 */ unsigned char param : 8;
|
||||
} Gpopmtx;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ int pad0 : 8;
|
||||
/* 0x2 */ int mw_index : 8;
|
||||
/* 0x3 */ int number : 8;
|
||||
/* 0x4 */ int pad1 : 8;
|
||||
/* 0x5 */ int base : 24;
|
||||
} Gsegment;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ int pad0 : 8;
|
||||
/* 0x2 */ int sft : 8;
|
||||
/* 0x3 */ int len : 8;
|
||||
/* 0x4 */ unsigned int data : 32;
|
||||
} GsetothermodeL;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ int pad0 : 8;
|
||||
/* 0x2 */ int sft : 8;
|
||||
/* 0x3 */ int len : 8;
|
||||
/* 0x4 */ unsigned int data : 32;
|
||||
} GsetothermodeH;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned char cmd;
|
||||
/* 0x1 */ unsigned char lodscale;
|
||||
/* 0x2 */ unsigned char tile;
|
||||
/* 0x3 */ unsigned char on;
|
||||
/* 0x4 */ unsigned short s;
|
||||
/* 0x6 */ unsigned short t;
|
||||
} Gtexture;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ int pad : 24;
|
||||
/* 0x4 */ Tri line;
|
||||
} Gline3D;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ int pad1 : 24;
|
||||
/* 0x4 */ short pad2;
|
||||
/* 0x6 */ short scale;
|
||||
} Gperspnorm;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned int fmt : 3;
|
||||
/* 0x1 */ unsigned int siz : 2;
|
||||
/* 0x1 */ unsigned int pad : 7;
|
||||
/* 0x2 */ unsigned int wd : 12;
|
||||
/* 0x4 */ unsigned int dram;
|
||||
} Gsetimg;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned int muxs0 : 24;
|
||||
/* 0x4 */ unsigned int muxs1 : 32;
|
||||
} Gsetcombine;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned char pad;
|
||||
/* 0x2 */ unsigned char prim_min_level;
|
||||
/* 0x3 */ unsigned char prim_level;
|
||||
/* 0x4 */ unsigned long color;
|
||||
} Gsetcolor;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ int x0 : 10;
|
||||
/* 0x2 */ int x0frac : 2;
|
||||
/* 0x2 */ int y0 : 10;
|
||||
/* 0x3 */ int y0frac : 2;
|
||||
/* 0x4 */ unsigned int pad : 8;
|
||||
/* 0x5 */ int x1 : 10;
|
||||
/* 0x6 */ int x1frac : 2;
|
||||
/* 0x6 */ int y1 : 10;
|
||||
/* 0x7 */ int y1frac : 2;
|
||||
} Gfillrect;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned int fmt : 3;
|
||||
/* 0x1 */ unsigned int siz : 2;
|
||||
/* 0x1 */ unsigned int pad0 : 1;
|
||||
/* 0x1 */ unsigned int line : 9;
|
||||
/* 0x2 */ unsigned int tmem : 9;
|
||||
/* 0x4 */ unsigned int pad1 : 5;
|
||||
/* 0x4 */ unsigned int tile : 3;
|
||||
/* 0x5 */ unsigned int palette : 4;
|
||||
/* 0x5 */ unsigned int ct : 1;
|
||||
/* 0x5 */ unsigned int mt : 1;
|
||||
/* 0x5 */ unsigned int maskt : 4;
|
||||
/* 0x6 */ unsigned int shiftt : 4;
|
||||
/* 0x6 */ unsigned int cs : 1;
|
||||
/* 0x6 */ unsigned int ms : 1;
|
||||
/* 0x7 */ unsigned int masks : 4;
|
||||
/* 0x7 */ unsigned int shifts : 4;
|
||||
} Gsettile;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned int sl : 12;
|
||||
/* 0x2 */ unsigned int tl : 12;
|
||||
/* 0x4 */ int pad : 5;
|
||||
/* 0x4 */ unsigned int tile : 3;
|
||||
/* 0x5 */ unsigned int sh : 12;
|
||||
/* 0x6 */ unsigned int th : 12;
|
||||
} Gloadtile;
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned int sl : 12;
|
||||
/* 0x2 */ unsigned int tl : 12;
|
||||
/* 0x4 */ int pad : 5;
|
||||
/* 0x4 */ unsigned int tile : 3;
|
||||
/* 0x5 */ unsigned int sh : 12;
|
||||
/* 0x6 */ unsigned int th : 12;
|
||||
} Gloadblock;
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned int sl : 12;
|
||||
/* 0x2 */ unsigned int tl : 12;
|
||||
/* 0x4 */ int pad : 5;
|
||||
/* 0x4 */ unsigned int tile : 3;
|
||||
/* 0x5 */ unsigned int sh : 12;
|
||||
/* 0x6 */ unsigned int th : 12;
|
||||
} Gsettilesize;
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int cmd : 8;
|
||||
/* 0x1 */ unsigned int sl : 12;
|
||||
/* 0x2 */ unsigned int tl : 12;
|
||||
/* 0x4 */ int pad : 5;
|
||||
/* 0x4 */ unsigned int tile : 3;
|
||||
/* 0x5 */ unsigned int sh : 12;
|
||||
/* 0x6 */ unsigned int th : 12;
|
||||
} Gloadtlut;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int cmd : 8;
|
||||
/* 0x1 */ unsigned int xl : 12;
|
||||
/* 0x2 */ unsigned int yl : 12;
|
||||
/* 0x4 */ unsigned int pad1 : 5;
|
||||
/* 0x4 */ unsigned int tile : 3;
|
||||
/* 0x5 */ unsigned int xh : 12;
|
||||
/* 0x6 */ unsigned int yh : 12;
|
||||
/* 0x8 */ unsigned int s : 16;
|
||||
/* 0xA */ unsigned int t : 16;
|
||||
/* 0xC */ unsigned int dsdx : 16;
|
||||
/* 0xE */ unsigned int dtdy : 16;
|
||||
} Gtexrect;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned long w0;
|
||||
/* 0x4 */ unsigned long w1;
|
||||
/* 0x8 */ unsigned long w2;
|
||||
/* 0xC */ unsigned long w3;
|
||||
} TexRect;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned int w0;
|
||||
/* 0x4 */ unsigned int w1;
|
||||
} Gwords;
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Gwords words;
|
||||
/* 0x0 */ Gdma dma;
|
||||
/* 0x0 */ Gtri tri;
|
||||
/* 0x0 */ Gline3D line;
|
||||
/* 0x0 */ Gpopmtx popmtx;
|
||||
/* 0x0 */ Gsegment segment;
|
||||
/* 0x0 */ GsetothermodeH setothermodeH;
|
||||
/* 0x0 */ GsetothermodeL setothermodeL;
|
||||
/* 0x0 */ Gtexture texture;
|
||||
/* 0x0 */ Gperspnorm perspnorm;
|
||||
/* 0x0 */ Gsetimg setimg;
|
||||
/* 0x0 */ Gsetcombine setcombine;
|
||||
/* 0x0 */ Gsetcolor setcolor;
|
||||
/* 0x0 */ Gfillrect fillrect;
|
||||
/* 0x0 */ Gsettile settile;
|
||||
/* 0x0 */ Gloadtile loadtile;
|
||||
/* 0x0 */ Gloadtile settilesize;
|
||||
/* 0x0 */ Gloadtile loadtlut;
|
||||
/* 0x0 */ long long force_structure_alignment;
|
||||
} Gfx;
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,26 @@
|
||||
#ifndef _GU_H_
|
||||
#define _GU_H_
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ unsigned char* base;
|
||||
/* 0x4 */ int fmt;
|
||||
/* 0x8 */ int siz;
|
||||
/* 0xC */ int xsize;
|
||||
/* 0x10 */ int ysize;
|
||||
/* 0x14 */ int lsize;
|
||||
/* 0x18 */ int addr;
|
||||
/* 0x1C */ int w;
|
||||
/* 0x20 */ int h;
|
||||
/* 0x24 */ int s;
|
||||
/* 0x28 */ int t;
|
||||
} Image;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ float col[3];
|
||||
/* 0xC */ float pos[3];
|
||||
/* 0x18 */ float a1;
|
||||
/* 0x1C */ float a2;
|
||||
} PositionalLight;
|
||||
|
||||
#endif
|
||||
+2
-4
@@ -4,6 +4,7 @@
|
||||
#include <PR/ultratypes.h>
|
||||
#include <osint.h>
|
||||
#include <viint.h>
|
||||
#include <guint.h>
|
||||
#include <unk.h>
|
||||
#include <structs.h>
|
||||
|
||||
@@ -44,7 +45,6 @@ void func_80080E00(void); // func_80080E00
|
||||
// UNK_RET func_80081550(UNK_ARGS);
|
||||
// UNK_RET func_800815A8(UNK_ARGS);
|
||||
// UNK_RET func_800815CC(UNK_ARGS);
|
||||
// UNK_RET func_800815CC(UNK_ARGS);
|
||||
// UNK_RET func_80081684(UNK_ARGS);
|
||||
// UNK_RET func_800816E8(UNK_ARGS);
|
||||
// UNK_RET func_800816F8(UNK_ARGS);
|
||||
@@ -290,7 +290,7 @@ void osSpTaskYield(void); // func_8008AF50
|
||||
// UNK_RET func_8008B554(UNK_ARGS);
|
||||
// UNK_RET func_8008B600(UNK_ARGS);
|
||||
UNK_RET func_8008B650(UNK_PTR); // func_8008B650
|
||||
u32 __osGetConfig(void ); // func_8008B6B0
|
||||
u32 __osGetConfig(void); // func_8008B6B0
|
||||
void __osSetConfig(u32 value); // func_8008B6C0
|
||||
// UNK_RET func_8008B6D0(UNK_ARGS);
|
||||
// UNK_RET func_8008B974(UNK_ARGS);
|
||||
@@ -457,8 +457,6 @@ UNK_RET osViModeNtscHpf1(UNK_ARGS); // func_80097540
|
||||
UNK_RET osViModeNtscHpn1(UNK_ARGS); // func_80097EB0
|
||||
UNK_RET osViModeNtscLan1(UNK_ARGS); // func_80097FC0
|
||||
UNK_RET osViModeMpalLan1(UNK_ARGS); // func_80098010
|
||||
UNK_RET __osRcpImTable(UNK_ARGS); // func_800991A0
|
||||
UNK_RET __libm_qnan_f(UNK_ARGS); // func_80099450
|
||||
UNK_RET func_800A5AC0(void*, UNK_TYPE); // func_800A5AC0
|
||||
UNK_RET func_800A5B6C(s800A5AC0*, z_GlobalContext*); // func_800A5B6C
|
||||
UNK_RET func_800A5B98(s800A5AC0*, UNK_TYPE); // func_800A5B98
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef _GUINT_H_
|
||||
#define _GUINT_H_
|
||||
|
||||
// TODO should be in libultra/gu
|
||||
|
||||
#include <PR/gbi.h>
|
||||
#include <PR/abi.h>
|
||||
#include <PR/ultratypes.h>
|
||||
#include <sptask.h> // TODO the load path for this is actually PR/sptask.h, why?
|
||||
#include <PR/gu.h>
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ struct {
|
||||
/* 0x0 */ unsigned int hi;
|
||||
/* 0x4 */ unsigned int lo;
|
||||
} word;
|
||||
/* 0x0 */ double d;
|
||||
} du;
|
||||
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ unsigned int i;
|
||||
/* 0x0 */ float f;
|
||||
} fu;
|
||||
|
||||
typedef float Matrix[4][4];
|
||||
|
||||
#endif
|
||||
@@ -170,13 +170,6 @@ typedef struct {
|
||||
|
||||
// TODO everything past here should be placed in an appropiate libultra header
|
||||
|
||||
typedef long Mtx_t[4][4];
|
||||
|
||||
typedef union {
|
||||
/* 0x0 */ Mtx_t m;
|
||||
/* 0x0 */ long long force_structure_alignment;
|
||||
} Mtx;
|
||||
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ int quot;
|
||||
|
||||
+7
-5
@@ -4,6 +4,7 @@
|
||||
#include <PR/ultratypes.h>
|
||||
#include <osint.h>
|
||||
#include <viint.h>
|
||||
#include <guint.h>
|
||||
#include <unk.h>
|
||||
#include <structs.h>
|
||||
|
||||
@@ -2071,10 +2072,11 @@ extern UNK_TYPE D_800982A4; // D_800982A4
|
||||
//extern UNK_TYPE D_80099108;
|
||||
//extern UNK_TYPE D_8009910C;
|
||||
//extern UNK_TYPE D_800991A0;
|
||||
//extern UNK_TYPE D_80099220;
|
||||
//extern UNK_TYPE D_80099248;
|
||||
//extern UNK_TYPE D_80099250;
|
||||
//extern UNK_TYPE D_80099258;
|
||||
extern du P[]; // D_80099220
|
||||
extern du rpi; // D_80099248
|
||||
extern du pihi; // D_80099250
|
||||
extern du pilo; // D_80099258
|
||||
extern fu zero; // D_80099260
|
||||
extern UNK_TYPE __osHwIntTable; // D_80099270
|
||||
extern UNK_TYPE leoDiskStack; // D_80099290
|
||||
//extern UNK_TYPE D_800992C0;
|
||||
@@ -2085,7 +2087,7 @@ extern UNK_TYPE leoDiskStack; // D_80099290
|
||||
//extern UNK_TYPE D_80099428;
|
||||
//extern UNK_TYPE D_80099430;
|
||||
//extern UNK_TYPE D_80099438;
|
||||
//extern UNK_TYPE D_80099450;
|
||||
extern float __libm_qnan_f; // D_80099450
|
||||
//extern UNK_TYPE D_80099460;
|
||||
//extern UNK_TYPE D_800994A8;
|
||||
//extern UNK_TYPE D_800994B0;
|
||||
|
||||
Reference in New Issue
Block a user