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
+1 -1
View File
@@ -235,7 +235,7 @@ segments:
- [0x032110, asmtu, cs4/Seimei/src/Camera] - [0x032110, asmtu, cs4/Seimei/src/Camera]
- [0x034930, asmtu, cs4/Seimei/src/Debug] - [0x034930, asmtu, cs4/Seimei/src/Debug]
- [0x034D10, asmtu, cs4/Seimei/src/Draw] - [0x034D10, asmtu, cs4/Seimei/src/Draw]
- [0x038710, asmtu, cs4/Seimei/src/File] - [0x038710, c, cs4/Seimei/src/File]
- [0x038D00, asmtu, cs4/Seimei/src/Game] - [0x038D00, asmtu, cs4/Seimei/src/Game]
- [0x039A00, asmtu, cs4/Seimei/src/Load] - [0x039A00, asmtu, cs4/Seimei/src/Load]
- [0x03A380, asmtu, cs4/Seimei/src/Main] - [0x03A380, asmtu, cs4/Seimei/src/Main]
-1
View File
@@ -11,7 +11,6 @@ typedef volatile s16 vs16;
typedef volatile s32 vs32; typedef volatile s32 vs32;
typedef volatile s64 vs64; typedef volatile s64 vs64;
typedef unsigned char u8; typedef unsigned char u8;
typedef unsigned short u16; typedef unsigned short u16;
typedef unsigned int u32; typedef unsigned int u32;
-3
View File
@@ -5,9 +5,6 @@
#include "common.h" #include "common.h"
#include "sce/libcdvd.h" #include "sce/libcdvd.h"
// Belongs in CDVD.c
unsigned int GlobalLoadTimer;
void GetAllBindInfo(char *fname /* r2 */, unsigned int *lsn /* r2 */, void GetAllBindInfo(char *fname /* r2 */, unsigned int *lsn /* r2 */,
unsigned int *size /* r2 */) { unsigned int *size /* r2 */) {
// Range: 0x15E2E0 -> 0x15E440 // Range: 0x15E2E0 -> 0x15E440
+6 -1
View File
@@ -1,6 +1,6 @@
#ifndef BINDER_H #ifndef BINDER_H
#define BINDER_H #define BINDER_H
#include "typedefs.h"
// Range: 0x15E440 -> 0x15E760 // Range: 0x15E440 -> 0x15E760
// total size: 0x10 // 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 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 #endif // BINDER_H
+3
View File
@@ -122,4 +122,7 @@ static LPCDVDREAD *lpCdvdRead;
static CDVDREADST CdvdReadSt[256]; static CDVDREADST CdvdReadSt[256];
extern unsigned int GlobalLoadTimer; // size: 0x4, address: 0x257894 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 #endif // CDVD_H
+5
View File
@@ -1,7 +1,9 @@
#include "File.h" #include "File.h"
#include "Binder.h"
#include "Cdvd.h" #include "Cdvd.h"
#include "Game.h" #include "Game.h"
#include "Model.h" #include "Model.h"
#include "My.h"
#include "Tex.h" #include "Tex.h"
#include "Unk.h" #include "Unk.h"
#include "common.h" #include "common.h"
@@ -12,6 +14,9 @@
unsigned char ScePath[128]; // size: 0x80, address: 0x3254B0 unsigned char ScePath[128]; // size: 0x80, address: 0x3254B0
unsigned char RootPath[128]; // size: 0x80, address: 0x325530 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) { void AfterFileReadFunc(u8 *lpAddr, s32 index, s32 fileType, s32 size) {
switch (fileType) { switch (fileType) {
case 0x0: case 0x0:
+2
View File
@@ -148,4 +148,6 @@ typedef struct _mdlmng {
extern MDLMNG MdlMng[770]; // size: 0x54380, address: 0x6A0E50 extern MDLMNG MdlMng[770]; // size: 0x54380, address: 0x6A0E50
void SetMdlBndFile(signed int Index /* r17 */);
#endif // MODEL_H #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