Fix build errors on latest VitaSDK. (#583)

This commit is contained in:
bythos14 2020-10-16 11:14:05 -04:00 committed by GitHub
parent 3d7ebe61e6
commit 2adb4b8b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

2
elf.h
View File

@ -214,7 +214,7 @@ typedef struct {
/* SCE relocation entry */ /* SCE relocation entry */
// assuming LSB of bitfield is listed first // assuming LSB of bitfield is listed first
union { typedef union {
Elf32_Word r_short : 4; Elf32_Word r_short : 4;
struct { struct {
Elf32_Word r_short : 4; Elf32_Word r_short : 4;

4
pfs.c
View File

@ -41,6 +41,10 @@
0x3F0: vs0:data/external 0x3F0: vs0:data/external
*/ */
char pfs_mounted_path[MAX_PATH_LENGTH];
char pfs_mount_point[MAX_MOUNT_POINT_LENGTH];
int read_only;
int known_pfs_ids[] = { int known_pfs_ids[] = {
0x6E, 0x6E,
0x12E, 0x12E,

8
pfs.h
View File

@ -19,11 +19,11 @@
#ifndef __PFS_H__ #ifndef __PFS_H__
#define __PFS_H__ #define __PFS_H__
char pfs_mounted_path[MAX_PATH_LENGTH]; extern char pfs_mounted_path[];
char pfs_mount_point[MAX_MOUNT_POINT_LENGTH]; extern char pfs_mount_point[];
int read_only; extern int read_only;
int known_pfs_ids[4]; extern int known_pfs_ids[];
int pfsMount(const char *path); int pfsMount(const char *path);
int pfsUmount(); int pfsUmount();