6868# endif
6969#endif
7070
71- #ifdef __CELLOS_LV2__
71+ #if defined ( __CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
7272#include <cell/cell_fs.h>
7373#define O_RDONLY CELL_FS_O_RDONLY
7474#define O_WRONLY CELL_FS_O_WRONLY
151151#include <fileXio.h>
152152#endif
153153
154- #if defined(__CELLOS_LV2__ )
154+ #if defined (__CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
155155#include <cell/cell_fs.h>
156156#endif
157157
@@ -949,7 +949,7 @@ int retro_vfs_stat_impl(const char *path, int32_t *size)
949949
950950 return RETRO_VFS_STAT_IS_VALID | (is_dir ? RETRO_VFS_STAT_IS_DIRECTORY : 0 ) | (is_character_special ? RETRO_VFS_STAT_IS_CHARACTER_SPECIAL : 0 );
951951
952- #elif defined(__CELLOS_LV2__ )
952+ #elif defined(__CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
953953 /* CellOS Lv2 */
954954 bool is_dir ;
955955 bool is_character_special = false;
@@ -1095,7 +1095,7 @@ struct libretro_vfs_implementation_dir
10951095#elif defined(PS2 )
10961096 int directory ;
10971097 iox_dirent_t entry ;
1098- #elif defined(__CELLOS_LV2__ )
1098+ #elif defined(__CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
10991099 CellFsErrno error ;
11001100 int directory ;
11011101 CellFsDirent entry ;
@@ -1114,7 +1114,7 @@ static bool dirent_check_error(libretro_vfs_implementation_dir *rdir)
11141114 return (rdir -> directory == INVALID_HANDLE_VALUE );
11151115#elif defined(VITA ) || defined(PSP ) || defined(PS2 ) || defined(ORBIS )
11161116 return (rdir -> directory < 0 );
1117- #elif defined(__CELLOS_LV2__ )
1117+ #elif defined(__CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
11181118 return (rdir -> error != CELL_FS_SUCCEEDED );
11191119#else
11201120 return !(rdir -> directory );
@@ -1181,7 +1181,7 @@ libretro_vfs_implementation_dir *retro_vfs_opendir_impl(
11811181#elif defined(_3DS )
11821182 rdir -> directory = !string_is_empty (name ) ? opendir (name ) : NULL ;
11831183 rdir -> entry = NULL ;
1184- #elif defined(__CELLOS_LV2__ )
1184+ #elif defined(__CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
11851185 rdir -> error = cellFsOpendir (name , & rdir -> directory );
11861186#elif defined(ORBIS )
11871187 rdir -> directory = orbisDopen (name );
@@ -1223,7 +1223,7 @@ bool retro_vfs_readdir_impl(libretro_vfs_implementation_dir *rdir)
12231223 int ret = ps2fileXioDread (rdir -> directory , & record );
12241224 rdir -> entry = record ;
12251225 return ( ret > 0 );
1226- #elif defined(__CELLOS_LV2__ )
1226+ #elif defined(__CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
12271227 uint64_t nread ;
12281228 rdir -> error = cellFsReaddir (rdir -> directory , & rdir -> entry , & nread );
12291229 return (nread != 0 );
@@ -1257,7 +1257,7 @@ const char *retro_vfs_dirent_get_name_impl(libretro_vfs_implementation_dir *rdir
12571257 }
12581258#endif
12591259 return (char * )rdir -> entry .cFileName ;
1260- #elif defined(VITA ) || defined(PSP ) || defined(__CELLOS_LV2__ ) || defined(ORBIS )
1260+ #elif defined(VITA ) || defined(PSP ) || ( defined(__CELLOS_LV2__ ) && !defined( __PSL1GHT__ ) ) || defined(ORBIS )
12611261 return rdir -> entry .d_name ;
12621262#elif defined(PS2 )
12631263 return rdir -> entry .name ;
@@ -1283,7 +1283,7 @@ bool retro_vfs_dirent_is_dir_impl(libretro_vfs_implementation_dir *rdir)
12831283#elif defined(PS2 )
12841284 const iox_dirent_t * entry = (const iox_dirent_t * )& rdir -> entry ;
12851285 return FIO_S_ISDIR (entry -> stat .mode );
1286- #elif defined(__CELLOS_LV2__ )
1286+ #elif defined(__CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
12871287 CellFsDirent * entry = (CellFsDirent * )& rdir -> entry ;
12881288 return (entry -> d_type == CELL_FS_TYPE_DIRECTORY );
12891289#elif defined(ORBIS )
@@ -1324,7 +1324,7 @@ int retro_vfs_closedir_impl(libretro_vfs_implementation_dir *rdir)
13241324 sceIoDclose (rdir -> directory );
13251325#elif defined(PS2 )
13261326 ps2fileXioDclose (rdir -> directory );
1327- #elif defined(__CELLOS_LV2__ )
1327+ #elif defined(__CELLOS_LV2__ ) && !defined( __PSL1GHT__ )
13281328 rdir -> error = cellFsClosedir (rdir -> directory );
13291329#elif defined(ORBIS )
13301330 orbisDclose (rdir -> directory );
0 commit comments