Skip to content

Commit 794c9a9

Browse files
fix types (#350)
* fix types * rename private dirent
1 parent 3d083a3 commit 794c9a9

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/kernel/psploadexec_kernel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
/**@{*/
2828

2929
/** Structure for LoadExecVSH* functions */
30-
struct SceKernelLoadExecVSHParam {
30+
typedef struct SceKernelLoadExecVSHParam {
3131
/** Size of the structure in bytes */
3232
SceSize size;
3333
/** Size of the arguments string */
@@ -46,7 +46,7 @@ struct SceKernelLoadExecVSHParam {
4646
u32 unk4;
4747
/** unknown flag default value = 0x10000 */
4848
u32 unk5;
49-
};
49+
} SceKernelLoadExecVSHParam;
5050

5151
#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION < 200
5252
/**

src/user/pspiofilemgr_dirent.h

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

2121
#include <pspiofilemgr_stat.h>
2222

23-
typedef struct SceIoPrivateDirent {
23+
typedef struct SceIoFatDirentPrivate {
2424
SceSize size;
25-
char shortFileName[13];
25+
char s_name[13];
2626
char __padding__[3];
27-
char longFileName[1024];
28-
} SceIoPrivateDirent;
27+
char l_name[1024];
28+
} SceIoFatDirentPrivate;
2929

3030
/** Describes a single directory entry */
3131
typedef struct SceIoDirent {
3232
/** File status. */
33-
SceIoStat d_stat;
33+
SceIoStat d_stat;
3434
/** File name. */
35-
char d_name[256];
35+
char d_name[256];
3636
/** Device-specific data. */
37-
SceIoPrivateDirent* d_private;
38-
int dummy;
37+
SceIoFatDirentPrivate* d_private;
38+
int dummy;
3939
} SceIoDirent;
4040

4141
#endif /* PSPIOFILEMGR_DIRENT_H */

0 commit comments

Comments
 (0)