Working on matching File

This commit is contained in:
2026-08-10 21:03:15 -05:00
committed by Timothy O'Barr
parent 021069912f
commit 4a61954401
8 changed files with 25 additions and 6 deletions
-3
View File
@@ -5,9 +5,6 @@
#include "common.h"
#include "sce/libcdvd.h"
// Belongs in CDVD.c
unsigned int GlobalLoadTimer;
void GetAllBindInfo(char *fname /* r2 */, unsigned int *lsn /* r2 */,
unsigned int *size /* r2 */) {
// Range: 0x15E2E0 -> 0x15E440
+6 -1
View File
@@ -1,6 +1,6 @@
#ifndef BINDER_H
#define BINDER_H
#include "typedefs.h"
// Range: 0x15E440 -> 0x15E760
// total size: 0x10
@@ -88,5 +88,10 @@ static inline unsigned int foo_fn(char* fname) {
void GetAllBindInfo(char * fname /* r2 */, unsigned int * lsn /* r2 */, unsigned int * size /* r2 */);
void SetAllBindInfo(void);
unsigned int GetBindNum(LPBINDHEAD *lpBindHead /* r2 */);
unsigned int GetBindOffsetByName(LPBINDHEAD *lpBindHead, char *fname);
unsigned int GetBindOffsetByIndex(LPBINDHEAD *lpBindHead, u_short Index);
void RemapBinderFile(void *lpBuf /* r2 */);
#endif // BINDER_H
+3
View File
@@ -122,4 +122,7 @@ static LPCDVDREAD *lpCdvdRead;
static CDVDREADST CdvdReadSt[256];
extern unsigned int GlobalLoadTimer; // size: 0x4, address: 0x257894
signed int CdvdRead(char * filename /* r4 */, signed int size /* r20 */, unsigned char * * lpBuf /* r19 */, unsigned char bSynch /* r18 */, signed int index /* r17 */, signed int filetype /* r16 */, unsigned int align /* r21 */);
#endif // CDVD_H
+5
View File
@@ -1,7 +1,9 @@
#include "File.h"
#include "Binder.h"
#include "Cdvd.h"
#include "Game.h"
#include "Model.h"
#include "My.h"
#include "Tex.h"
#include "Unk.h"
#include "common.h"
@@ -12,6 +14,9 @@
unsigned char ScePath[128]; // size: 0x80, address: 0x3254B0
unsigned char RootPath[128]; // size: 0x80, address: 0x325530
// Belongs in CDVD.c
unsigned int GlobalLoadTimer;
void AfterFileReadFunc(u8 *lpAddr, s32 index, s32 fileType, s32 size) {
switch (fileType) {
case 0x0:
+2
View File
@@ -148,4 +148,6 @@ typedef struct _mdlmng {
extern MDLMNG MdlMng[770]; // size: 0x54380, address: 0x6A0E50
void SetMdlBndFile(signed int Index /* r17 */);
#endif // MODEL_H
+8
View File
@@ -0,0 +1,8 @@
#ifndef MY_H
#define MY_H
void MyAppear(signed int MyNo /* r2 */, struct _mdlmng * lpMy /* r18 */, float * Pos /* r16 */, float AngY /* r20 */);
#endif // MY_H