Added missing definitions
Moved some typedefs in common to typedefs.h and included typedefs in common.h
This commit is contained in:
+1
-32
@@ -1,38 +1,7 @@
|
|||||||
#ifndef COMMON_H
|
#ifndef COMMON_H
|
||||||
#define COMMON_H
|
#define COMMON_H
|
||||||
|
|
||||||
typedef char s8;
|
#include "typedefs.h"
|
||||||
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;
|
|
||||||
|
|
||||||
#define UNK_TYPE s32
|
#define UNK_TYPE s32
|
||||||
#define UNK_PTR void*
|
#define UNK_PTR void*
|
||||||
|
|||||||
@@ -19,6 +19,41 @@ typedef int sceVu0IVECTOR[4] __attribute__((aligned (16)));
|
|||||||
typedef float sceVu0FVECTOR[4] __attribute__((aligned (16)));
|
typedef float sceVu0FVECTOR[4] __attribute__((aligned (16)));
|
||||||
typedef float sceVu0FMATRIX[4][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 {
|
typedef union {
|
||||||
int ui32;
|
int ui32;
|
||||||
float fl32;
|
float fl32;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#ifndef FILE_H
|
#ifndef FILE_H
|
||||||
#define FILE_H
|
#define FILE_H
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
extern unsigned char ScePath[128]; // size: 0x80, address: 0x3254B0
|
extern unsigned char ScePath[128]; // size: 0x80, address: 0x3254B0
|
||||||
extern unsigned char RootPath[128]; // size: 0x80, address: 0x325530
|
extern unsigned char RootPath[128]; // size: 0x80, address: 0x325530
|
||||||
@@ -8,5 +9,6 @@ void InitFileRead();
|
|||||||
void InitFileSystem();
|
void InitFileSystem();
|
||||||
void ReadRootPath();
|
void ReadRootPath();
|
||||||
unsigned char * GetRootPath();
|
unsigned char * GetRootPath();
|
||||||
|
void AfterFileReadFunc(u8 *lpAddr, s32 index, s32 fileType, s32 size);
|
||||||
|
|
||||||
#endif // FILE_H
|
#endif // FILE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user