mirror of
https://github.com/pret/pokeheartgold.git
synced 2025-03-03 02:26:33 +00:00
Export unk_0200A090.c symbols
This commit is contained in:
parent
334b1ccbe8
commit
6e186a3b5f
@ -83,11 +83,46 @@ struct UnkStruct_0200A674 {
|
||||
|
||||
struct UnkStruct_0200A090 *sub_0200A090(int num, GfGfxResType type, HeapID heapId);
|
||||
void sub_0200A0D0(struct UnkStruct_0200A090 *mgr);
|
||||
void sub_0200AEB0(void *a0);
|
||||
void sub_0200B0A8(void *a0);
|
||||
void sub_0200A75C(struct UnkStruct_0200A090 *a0, struct UnkStruct_0200A090_sub4 *a1);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A110(struct UnkStruct_0200A090 *mgr, const struct UnkStruct_0200A110 *header, int idx, HeapID heapId);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A1D8(struct UnkStruct_0200A090 *mgr, NarcId narcId, int fileId, BOOL compressed, int id, int vram, HeapID heapId);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A234(struct UnkStruct_0200A090 *mgr, NarcId narcId, int fileId, BOOL compressed, int id, int vram, int pltt_num, HeapID heapId);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A294(struct UnkStruct_0200A090 *mgr, NarcId narcId, int fileId, BOOL compressed, int id, int type, HeapID heapId);
|
||||
void sub_0200A2E4(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NarcId narcId, int fileId, BOOL compressed, HeapID heapId);
|
||||
void sub_0200A350(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NarcId narcId, int fileId, BOOL compressed, HeapID heapId);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A3C8(struct UnkStruct_0200A090 *mgr, NARC *narc, int fileId, BOOL compressed, int id, int vram, HeapID heapId);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A424(struct UnkStruct_0200A090 *mgr, NARC *narc, int fileId, BOOL compressed, int id, int vram, HeapID heapId, BOOL atEnd);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A480(struct UnkStruct_0200A090 *mgr, NARC *narc, int fileId, BOOL compressed, int id, int vram, int pltt_num, HeapID heapId);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A4E0(struct UnkStruct_0200A090 *mgr, NARC *narc, int fileId, BOOL compressed, int id, int vram, int pltt_num, HeapID heapId, BOOL atEnd);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A540(struct UnkStruct_0200A090 *a0, NARC *narc, int fileId, BOOL compressed, int id, GfGfxResType type, HeapID heapId);
|
||||
void sub_0200A590(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NARC *narc, int fileId, BOOL compressed, HeapID heapId);
|
||||
void sub_0200A5FC(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NARC *narc, int fileId, BOOL compressed, HeapID heapId);
|
||||
int sub_0200A674(struct UnkStruct_0200A090 *mgr, const struct UnkStruct_0200A110 *header, struct UnkStruct_0200A674 *list, HeapID heapId);
|
||||
struct UnkStruct_0200A674 *sub_0200A6F0(int num, HeapID heapId);
|
||||
void sub_0200A714(struct UnkStruct_0200A674 *list);
|
||||
BOOL sub_0200A728(struct UnkStruct_0200A090 *mgr, int a1);
|
||||
void sub_0200A740(struct UnkStruct_0200A090_sub4 *obj);
|
||||
void sub_0200A75C(struct UnkStruct_0200A090 *a0, struct UnkStruct_0200A090_sub4 *a1);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200A7BC(struct UnkStruct_0200A090 *mgr, int id);
|
||||
int sub_0200A7FC(struct UnkStruct_0200A090_sub4 *obj);
|
||||
NNSG2dCharacterData *sub_0200A810(struct UnkStruct_0200A090_sub4 *obj);
|
||||
NNSG2dPaletteData *sub_0200A828(struct UnkStruct_0200A090_sub4 *obj);
|
||||
NNSG2dCellDataBank *sub_0200A840(struct UnkStruct_0200A090_sub4 *obj);
|
||||
NNSG2dAnimBankData *sub_0200A858(struct UnkStruct_0200A090_sub4 *obj);
|
||||
NNSG2dMultiCellDataBank *sub_0200A870(struct UnkStruct_0200A090_sub4 *obj);
|
||||
NNSG2dAnimBankData *sub_0200A888(struct UnkStruct_0200A090_sub4 *obj);
|
||||
GfGfxResType sub_0200A8A0(struct UnkStruct_0200A090_sub4 *obj);
|
||||
int sub_0200A8B0(struct UnkStruct_0200A090_sub4 *obj);
|
||||
int sub_0200A8DC(struct UnkStruct_0200A090_sub4 *obj);
|
||||
u32 sub_0200A8FC(void);
|
||||
struct UnkStruct_0200A110 *sub_0200A900(struct UnkStruct_0200A110 *headers, int num);
|
||||
void sub_0200A908(const void *a0, struct UnkStruct_0200A110 *header, HeapID heapId);
|
||||
void sub_0200A954(struct UnkStruct_0200A110 *header);
|
||||
int sub_0200A96C(const struct UnkStruct_0200A110 *header);
|
||||
int sub_0200A97C(struct UnkStruct_0200A110 *header, int idx);
|
||||
int sub_0200A9B0(struct UnkStruct_0200A110 *header, int idx);
|
||||
BOOL sub_0200A9DC(struct UnkStruct_0200A110 *header, int idx);
|
||||
int sub_0200AA08(struct UnkStruct_0200A110 *header, int idx);
|
||||
int sub_0200AA3C(struct UnkStruct_0200A110 *header, int idx);
|
||||
void sub_0200AA9C(struct UnkStruct_0200A090_sub4 *obj, GfGfxResType type, int vram, int pltt_num, HeapID heapId);
|
||||
|
||||
#endif //POKEHEARTGOLD_UNK_0200A090_H
|
||||
|
2
main.lsf
2
main.lsf
@ -30,7 +30,7 @@ Static main
|
||||
Object asm/unk_02007FD8.o
|
||||
Object asm/unk_02009D48.o
|
||||
Object src/unk_0200A090.o
|
||||
Object asm/unk_0200A090_s.o
|
||||
Object asm/unk_0200ACF0.o
|
||||
Object asm/unk_0200B150.o
|
||||
Object src/msgdata.o
|
||||
Object src/msgfmt.o
|
||||
|
@ -1,26 +1,22 @@
|
||||
#include "unk_0200A090.h"
|
||||
#include "gf_gfx_loader.h"
|
||||
|
||||
void sub_0200A6A8(struct UnkStruct_0200A090 *mgr, const struct UnkStruct_0200A110 *header, int first, int count, struct UnkStruct_0200A674 *a4, HeapID heapId);
|
||||
BOOL sub_0200A728(struct UnkStruct_0200A090 *mgr, int a1);
|
||||
void sub_0200A790(struct UnkStruct_0200A090 *mgr);
|
||||
int sub_0200A7FC(struct UnkStruct_0200A090_sub4 *obj);
|
||||
int sub_0200A8B0(struct UnkStruct_0200A090_sub4 *obj);
|
||||
int sub_0200A8DC(struct UnkStruct_0200A090_sub4 *obj);
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200AA70(struct UnkStruct_0200A090 *mgr);
|
||||
struct CharResource_0200A090 *sub_0200AB0C(void *resource, int vram, HeapID heapId);
|
||||
struct PlttResource_0200A090 *sub_0200AB2C(void *resource, int vram, int pltt_num, HeapID heapId);
|
||||
struct CellDataBankResource_0200A090 *sub_0200AB50(void *resource, HeapID heapId);
|
||||
struct AnimBankDataResource_0200A090 *sub_0200AB6C(void *resource, HeapID heapId);
|
||||
struct MultiCellDataBankResource_0200A090 *sub_0200AB88(void *resource, HeapID heapId);
|
||||
struct MultiAnimBankDataResource_0200A090 *sub_0200ABA4(void *resource, HeapID heapId);
|
||||
void sub_0200ABC0(struct UnkStruct_0200A090_sub4 *obj);
|
||||
void *sub_0200ABD4(struct UnkStruct_0200A090_sub4 *obj);
|
||||
void sub_0200ABEC(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, char *name, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId);
|
||||
void sub_0200AC18(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NarcId narcId, int fileId, BOOL compressed, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId, BOOL atEnd);
|
||||
void sub_0200AC50(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NARC *narc, int fileId, BOOL compressed, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId, BOOL atEnd);
|
||||
void *sub_0200ACA4(NARC *narc, int fileId, BOOL compressed, HeapID heapId, BOOL atEnd);
|
||||
int sub_0200AC88(const struct UnkStruct_0200A110_sub2 *a0);
|
||||
static void sub_0200A6A8(struct UnkStruct_0200A090 *mgr, const struct UnkStruct_0200A110 *header, int first, int count, struct UnkStruct_0200A674 *a4, HeapID heapId);
|
||||
static void sub_0200A790(struct UnkStruct_0200A090 *mgr);
|
||||
static struct UnkStruct_0200A090_sub4 *sub_0200AA70(struct UnkStruct_0200A090 *mgr);
|
||||
static struct CharResource_0200A090 *sub_0200AB0C(void *resource, int vram, HeapID heapId);
|
||||
static struct PlttResource_0200A090 *sub_0200AB2C(void *resource, int vram, int pltt_num, HeapID heapId);
|
||||
static struct CellDataBankResource_0200A090 *sub_0200AB50(void *resource, HeapID heapId);
|
||||
static struct AnimBankDataResource_0200A090 *sub_0200AB6C(void *resource, HeapID heapId);
|
||||
static struct MultiCellDataBankResource_0200A090 *sub_0200AB88(void *resource, HeapID heapId);
|
||||
static struct MultiAnimBankDataResource_0200A090 *sub_0200ABA4(void *resource, HeapID heapId);
|
||||
static void sub_0200ABC0(struct UnkStruct_0200A090_sub4 *obj);
|
||||
static void *sub_0200ABD4(struct UnkStruct_0200A090_sub4 *obj);
|
||||
static void sub_0200ABEC(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, char *name, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId);
|
||||
static void sub_0200AC18(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NarcId narcId, int fileId, BOOL compressed, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId, BOOL atEnd);
|
||||
static void sub_0200AC50(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NARC *narc, int fileId, BOOL compressed, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId, BOOL atEnd);
|
||||
static int sub_0200AC88(const struct UnkStruct_0200A110_sub2 *a0);
|
||||
static void *sub_0200ACA4(NARC *narc, int fileId, BOOL compressed, HeapID heapId, BOOL atEnd);
|
||||
|
||||
struct UnkStruct_0200A090 *sub_0200A090(int num, GfGfxResType type, HeapID heapId) {
|
||||
struct UnkStruct_0200A090 *ret = AllocFromHeap(heapId, sizeof(struct UnkStruct_0200A090));
|
||||
@ -221,7 +217,7 @@ int sub_0200A674(struct UnkStruct_0200A090 *mgr, const struct UnkStruct_0200A110
|
||||
return header->num;
|
||||
}
|
||||
|
||||
void sub_0200A6A8(struct UnkStruct_0200A090 *mgr, const struct UnkStruct_0200A110 *header, int first, int count, struct UnkStruct_0200A674 *a4, HeapID heapId) {
|
||||
static void sub_0200A6A8(struct UnkStruct_0200A090 *mgr, const struct UnkStruct_0200A110 *header, int first, int count, struct UnkStruct_0200A674 *a4, HeapID heapId) {
|
||||
int i;
|
||||
struct UnkStruct_0200A090_sub4 *obj;
|
||||
|
||||
@ -269,7 +265,7 @@ void sub_0200A75C(struct UnkStruct_0200A090 *a0, struct UnkStruct_0200A090_sub4
|
||||
a0->num--;
|
||||
}
|
||||
|
||||
void sub_0200A790(struct UnkStruct_0200A090 *mgr) {
|
||||
static void sub_0200A790(struct UnkStruct_0200A090 *mgr) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < mgr->max; i++) {
|
||||
@ -464,7 +460,7 @@ int sub_0200AA3C(struct UnkStruct_0200A110 *header, int idx) {
|
||||
}
|
||||
}
|
||||
|
||||
struct UnkStruct_0200A090_sub4 *sub_0200AA70(struct UnkStruct_0200A090 *mgr) {
|
||||
static struct UnkStruct_0200A090_sub4 *sub_0200AA70(struct UnkStruct_0200A090 *mgr) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < mgr->max; i++) {
|
||||
@ -500,14 +496,14 @@ void sub_0200AA9C(struct UnkStruct_0200A090_sub4 *obj, GfGfxResType type, int vr
|
||||
}
|
||||
}
|
||||
|
||||
struct CharResource_0200A090 *sub_0200AB0C(void *resource, int vram, HeapID heapId) {
|
||||
static struct CharResource_0200A090 *sub_0200AB0C(void *resource, int vram, HeapID heapId) {
|
||||
struct CharResource_0200A090 *ret = AllocFromHeap(heapId, sizeof(struct CharResource_0200A090));
|
||||
NNS_G2dGetUnpackedCharacterData(resource, &ret->charData);
|
||||
ret->vram = vram;
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct PlttResource_0200A090 *sub_0200AB2C(void *resource, int vram, int pltt_num, HeapID heapId) {
|
||||
static struct PlttResource_0200A090 *sub_0200AB2C(void *resource, int vram, int pltt_num, HeapID heapId) {
|
||||
struct PlttResource_0200A090 *ret = AllocFromHeap(heapId, sizeof(struct PlttResource_0200A090));
|
||||
NNS_G2dGetUnpackedPaletteData(resource, &ret->plttData);
|
||||
ret->vram = vram;
|
||||
@ -515,64 +511,64 @@ struct PlttResource_0200A090 *sub_0200AB2C(void *resource, int vram, int pltt_nu
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct CellDataBankResource_0200A090 *sub_0200AB50(void *resource, HeapID heapId) {
|
||||
static struct CellDataBankResource_0200A090 *sub_0200AB50(void *resource, HeapID heapId) {
|
||||
struct CellDataBankResource_0200A090 *ret = AllocFromHeap(heapId, sizeof(struct CellDataBankResource_0200A090));
|
||||
NNS_G2dGetUnpackedCellBank(resource, &ret->cellDataBank);
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct AnimBankDataResource_0200A090 *sub_0200AB6C(void *resource, HeapID heapId) {
|
||||
static struct AnimBankDataResource_0200A090 *sub_0200AB6C(void *resource, HeapID heapId) {
|
||||
struct AnimBankDataResource_0200A090 *ret = AllocFromHeap(heapId, sizeof(struct AnimBankDataResource_0200A090));
|
||||
NNS_G2dGetUnpackedAnimBank(resource, &ret->animBankData);
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct MultiCellDataBankResource_0200A090 *sub_0200AB88(void *resource, HeapID heapId) {
|
||||
static struct MultiCellDataBankResource_0200A090 *sub_0200AB88(void *resource, HeapID heapId) {
|
||||
struct MultiCellDataBankResource_0200A090 *ret = AllocFromHeap(heapId, sizeof(struct MultiCellDataBankResource_0200A090));
|
||||
NNS_G2dGetUnpackedMultiCellBank(resource, &ret->multiCellDataBank);
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct MultiAnimBankDataResource_0200A090 *sub_0200ABA4(void *resource, HeapID heapId) {
|
||||
static struct MultiAnimBankDataResource_0200A090 *sub_0200ABA4(void *resource, HeapID heapId) {
|
||||
struct MultiAnimBankDataResource_0200A090 *ret = AllocFromHeap(heapId, sizeof(struct MultiAnimBankDataResource_0200A090));
|
||||
NNS_G2dGetUnpackedMCAnimBank(resource, &ret->animBankData);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void sub_0200ABC0(struct UnkStruct_0200A090_sub4 *obj) {
|
||||
static void sub_0200ABC0(struct UnkStruct_0200A090_sub4 *obj) {
|
||||
if (obj->unk8 != NULL) {
|
||||
FreeToHeap(obj->unk8);
|
||||
}
|
||||
obj->unk8 = NULL;
|
||||
}
|
||||
|
||||
void *sub_0200ABD4(struct UnkStruct_0200A090_sub4 *obj) {
|
||||
static void *sub_0200ABD4(struct UnkStruct_0200A090_sub4 *obj) {
|
||||
GF_ASSERT(obj != NULL);
|
||||
GF_ASSERT(obj->unk8 != NULL);
|
||||
return obj->unk8;
|
||||
}
|
||||
|
||||
void sub_0200ABEC(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, char *name, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId) {
|
||||
static void sub_0200ABEC(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, char *name, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId) {
|
||||
obj->unk0 = sub_02025600(mgr->resourceMgr, name, id, heapId);
|
||||
obj->type = type;
|
||||
sub_0200AA9C(obj, type, vram, pltt_num, heapId);
|
||||
}
|
||||
|
||||
void sub_0200AC18(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NarcId narcId, int fileId, BOOL compressed, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId, BOOL atEnd) {
|
||||
static void sub_0200AC18(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NarcId narcId, int fileId, BOOL compressed, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId, BOOL atEnd) {
|
||||
void *res = GfGfxLoader_LoadFromNarc(narcId, fileId, compressed, heapId, atEnd);
|
||||
obj->unk0 = sub_020255C4(mgr->resourceMgr, res, id);
|
||||
obj->type = type;
|
||||
sub_0200AA9C(obj, type, vram, pltt_num, heapId);
|
||||
}
|
||||
|
||||
void sub_0200AC50(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NARC *narc, int fileId, BOOL compressed, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId, BOOL atEnd) {
|
||||
static void sub_0200AC50(struct UnkStruct_0200A090 *mgr, struct UnkStruct_0200A090_sub4 *obj, NARC *narc, int fileId, BOOL compressed, int id, int vram, int pltt_num, GfGfxResType type, HeapID heapId, BOOL atEnd) {
|
||||
void *res = sub_0200ACA4(narc, fileId, compressed, heapId, atEnd);
|
||||
obj->unk0 = sub_020255C4(mgr->resourceMgr, res, id);
|
||||
obj->type = type;
|
||||
sub_0200AA9C(obj, type, vram, pltt_num, heapId);
|
||||
}
|
||||
|
||||
int sub_0200AC88(const struct UnkStruct_0200A110_sub2 *a0) {
|
||||
static int sub_0200AC88(const struct UnkStruct_0200A110_sub2 *a0) {
|
||||
int n = 0;
|
||||
while (a0[n].narcId != -2) {
|
||||
n++;
|
||||
@ -580,7 +576,7 @@ int sub_0200AC88(const struct UnkStruct_0200A110_sub2 *a0) {
|
||||
return n;
|
||||
}
|
||||
|
||||
void *sub_0200ACA4(NARC *narc, int fileId, BOOL compressed, HeapID heapId, BOOL atEnd) {
|
||||
static void *sub_0200ACA4(NARC *narc, int fileId, BOOL compressed, HeapID heapId, BOOL atEnd) {
|
||||
void *data = NARC_AllocAndReadWholeMember(narc, fileId, heapId);
|
||||
if (data != NULL) {
|
||||
if (compressed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user