From 800a3c68cb1befd5f9ab11706d9bc90af66b3548 Mon Sep 17 00:00:00 2001 From: JoseAaronLopezGarcia Date: Tue, 13 Jan 2026 21:14:22 +0100 Subject: [PATCH] add missing definitions --- src/kernel/pspinit.h | 2 ++ src/user/pspiofilemgr_dirent.h | 15 +++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/kernel/pspinit.h b/src/kernel/pspinit.h index 28688c5f3e..df90f49cc0 100644 --- a/src/kernel/pspinit.h +++ b/src/kernel/pspinit.h @@ -30,6 +30,7 @@ typedef enum PSPBootFrom { /** The executable was booted via Flash 3.*/ PSP_BOOT_FLASH3 = 0x80, } PSPBootFrom; +typedef PSPBootFrom SceBootMediumType; /** * API types of an executable. @@ -169,6 +170,7 @@ typedef enum PSPKeyConfig { /** The application is a PSP application (i.e. Skype). */ PSP_INIT_KEYCONFIG_APP = 0x400, } PSPKeyConfig; +typedef PSPKeyConfig SceApplicationType; /** * This structure represents a boot callback belonging to a module. diff --git a/src/user/pspiofilemgr_dirent.h b/src/user/pspiofilemgr_dirent.h index f1f9339bb4..988d96b7e9 100644 --- a/src/user/pspiofilemgr_dirent.h +++ b/src/user/pspiofilemgr_dirent.h @@ -20,15 +20,22 @@ #include +typedef struct SceIoPrivateDirent { + SceSize size; + char shortFileName[13]; + char __padding__[3]; + char longFileName[1024]; +} SceIoPrivateDirent; + /** Describes a single directory entry */ typedef struct SceIoDirent { /** File status. */ - SceIoStat d_stat; + SceIoStat d_stat; /** File name. */ - char d_name[256]; + char d_name[256]; /** Device-specific data. */ - void * d_private; - int dummy; + SceIoPrivateDirent* d_private; + int dummy; } SceIoDirent; #endif /* PSPIOFILEMGR_DIRENT_H */