Skip to content

Commit 3d083a3

Browse files
authored
Merge pull request #349 from JoseAaronLopezGarcia/master
Add some missing definitions
2 parents 6cc9698 + 0a2ef6f commit 3d083a3

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/kernel/pspinit.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ typedef enum PSPBootFrom {
3030
/** The executable was booted via Flash 3.*/
3131
PSP_BOOT_FLASH3 = 0x80,
3232
} PSPBootFrom;
33+
typedef PSPBootFrom SceBootMediumType;
3334

3435
/**
3536
* API types of an executable.
@@ -169,6 +170,7 @@ typedef enum PSPKeyConfig {
169170
/** The application is a PSP application (i.e. Skype). */
170171
PSP_INIT_KEYCONFIG_APP = 0x400,
171172
} PSPKeyConfig;
173+
typedef PSPKeyConfig SceApplicationType;
172174

173175
/**
174176
* This structure represents a boot callback belonging to a module.

src/user/pspiofilemgr_dirent.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,22 @@
2020

2121
#include <pspiofilemgr_stat.h>
2222

23+
typedef struct SceIoPrivateDirent {
24+
SceSize size;
25+
char shortFileName[13];
26+
char __padding__[3];
27+
char longFileName[1024];
28+
} SceIoPrivateDirent;
29+
2330
/** Describes a single directory entry */
2431
typedef struct SceIoDirent {
2532
/** File status. */
26-
SceIoStat d_stat;
33+
SceIoStat d_stat;
2734
/** File name. */
28-
char d_name[256];
35+
char d_name[256];
2936
/** Device-specific data. */
30-
void * d_private;
31-
int dummy;
37+
SceIoPrivateDirent* d_private;
38+
int dummy;
3239
} SceIoDirent;
3340

3441
#endif /* PSPIOFILEMGR_DIRENT_H */

0 commit comments

Comments
 (0)