vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:



Functions

SceUID sceIoDopen (const char *dirname)
 Open a directory. More...
 
int sceIoDread (SceUID fd, SceIoDirent *dir)
 Reads an entry from an opened file descriptor. More...
 
int sceIoDclose (SceUID fd)
 Close an opened directory file descriptor. More...
 

Function Documentation

◆ sceIoDopen()

SceUID sceIoDopen ( const char *  dirname)

Open a directory.

Example:
int dfd;
dfd = sceIoDopen("device:/");
if(dfd >= 0)
{ Do something with the file descriptor }
SceUID sceIoDopen(const char *dirname)
Open a directory.
Parameters
dirname- The directory to open for reading.
Returns
If >= 0 then a valid file descriptor, otherwise a Sony error code.

◆ sceIoDread()

int sceIoDread ( SceUID  fd,
SceIoDirent dir 
)

Reads an entry from an opened file descriptor.

Parameters
fd- Already opened file descriptor (using sceIoDopen)
dir- Pointer to a SceIoDirent structure to hold the file information
Returns
Read status
  • 0 - No more directory entries left
  • > 0 - More directory entries to go
  • < 0 - Error

◆ sceIoDclose()

int sceIoDclose ( SceUID  fd)

Close an opened directory file descriptor.

Parameters
fd- Already opened file descriptor (using sceIoDopen)
Returns
< 0 on error