Skip to content

Commit

Permalink
Fix build errors on latest VitaSDK. (TheOfficialFloW#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
bythos14 authored Oct 16, 2020
1 parent 3d7ebe6 commit 2adb4b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 214,7 @@ typedef struct {
/* SCE relocation entry */

// assuming LSB of bitfield is listed first
union {
typedef union {
Elf32_Word r_short : 4;
struct {
Elf32_Word r_short : 4;
Expand Down
4 changes: 4 additions & 0 deletions pfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 41,10 @@
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[] = {
0x6E,
0x12E,
Expand Down
8 changes: 4 additions & 4 deletions pfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 19,11 @@
#ifndef __PFS_H__
#define __PFS_H__

char pfs_mounted_path[MAX_PATH_LENGTH];
char pfs_mount_point[MAX_MOUNT_POINT_LENGTH];
int read_only;
extern char pfs_mounted_path[];
extern char pfs_mount_point[];
extern int read_only;

int known_pfs_ids[4];
extern int known_pfs_ids[];
int pfsMount(const char *path);
int pfsUmount();

Expand Down

0 comments on commit 2adb4b8

Please sign in to comment.