From a4da5f413c68aabbcad1a1c553a4041e11adae3b Mon Sep 17 00:00:00 2001 From: weirdbeardgame Date: Mon, 10 Aug 2026 20:16:13 -0500 Subject: [PATCH] Added missing definitions Moved some typedefs in common to typedefs.h and included typedefs in common.h --- include/common.h | 33 +-------------------------------- include/typedefs.h | 35 +++++++++++++++++++++++++++++++++++ src/cs4/Seimei/src/File.h | 2 ++ 3 files changed, 38 insertions(+), 32 deletions(-) diff --git a/include/common.h b/include/common.h index 6f8adef..f5fa98f 100644 --- a/include/common.h +++ b/include/common.h @@ -1,38 +1,7 @@ #ifndef COMMON_H #define COMMON_H -typedef char s8; -typedef short s16; -typedef int s32; -typedef long s64; - -typedef volatile s8 vs8; -typedef volatile s16 vs16; -typedef volatile s32 vs32; -typedef volatile s64 vs64; - -typedef unsigned char u8; -typedef unsigned short u16; -typedef unsigned int u32; -typedef unsigned long u64; - -typedef volatile u8 vu8; -typedef volatile u16 vu16; -typedef volatile u32 vu32; -typedef volatile u64 vu64; - -typedef union { - vs8 s8; - vs16 s16; - vs32 s32; - vs64 s64; - vu8 u8; - vu16 u16; - vu32 u32; - vu64 u64; -} _VX; - -typedef float f32; +#include "typedefs.h" #define UNK_TYPE s32 #define UNK_PTR void* diff --git a/include/typedefs.h b/include/typedefs.h index 297f323..fee9bfc 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -19,6 +19,41 @@ typedef int sceVu0IVECTOR[4] __attribute__((aligned (16))); typedef float sceVu0FVECTOR[4] __attribute__((aligned (16))); typedef float sceVu0FMATRIX[4][4] __attribute__((aligned (16))); + + +typedef char s8; +typedef short s16; +typedef int s32; +typedef long s64; + +typedef volatile s8 vs8; +typedef volatile s16 vs16; +typedef volatile s32 vs32; +typedef volatile s64 vs64; + +typedef unsigned char u8; +typedef unsigned short u16; +typedef unsigned int u32; +typedef unsigned long u64; + +typedef volatile u8 vu8; +typedef volatile u16 vu16; +typedef volatile u32 vu32; +typedef volatile u64 vu64; + +typedef float f32; + +typedef union { + vs8 s8; + vs16 s16; + vs32 s32; + vs64 s64; + vu8 u8; + vu16 u16; + vu32 u32; + vu64 u64; +} _VX; + typedef union { int ui32; float fl32; diff --git a/src/cs4/Seimei/src/File.h b/src/cs4/Seimei/src/File.h index ebda138..15f3928 100644 --- a/src/cs4/Seimei/src/File.h +++ b/src/cs4/Seimei/src/File.h @@ -1,5 +1,6 @@ #ifndef FILE_H #define FILE_H +#include "common.h" extern unsigned char ScePath[128]; // size: 0x80, address: 0x3254B0 extern unsigned char RootPath[128]; // size: 0x80, address: 0x325530 @@ -8,5 +9,6 @@ void InitFileRead(); void InitFileSystem(); void ReadRootPath(); unsigned char * GetRootPath(); +void AfterFileReadFunc(u8 *lpAddr, s32 index, s32 fileType, s32 size); #endif // FILE_H