Typedefs | |
| typedef int(*) | UmdCallback (int unknown, int event) |
| UMD Callback function. | |
Enumerations | |
| enum | UmdDriveStat { UMD_WAITFORDISC = 2, UMD_WAITFORINIT = 0x20 } |
| Enumeration for UMD stats. More... | |
Functions | |
| int | sceUmdCheckMedium (int a) |
| Check whether there is a disc in the UMD drive. | |
| int | sceUmdActivate (int unit, const char *drive) |
| Activates the UMD drive. | |
| int | sceUmdWaitDriveStat (int stat) |
| Wait for a drive to reach a certain state. | |
| int | sceUmdRegisterUMDCallBack (int cbid) |
| Register a callback for the UMD drive. | |
| typedef int(*) UmdCallback(int unknown, int event) |
UMD Callback function.
| enum UmdDriveStat |
| int sceUmdActivate | ( | int | unit, | |
| const char * | drive | |||
| ) |
Activates the UMD drive.
| unit | - The unit to initialise (probably). Should be set to 1. | |
| drive | - A prefix string for the fs device to mount the UMD on (e.g. "disc0:") |
// Wait for disc and mount to filesystem int i; i = sceUmdCheckMedium(0); if(i == 0) { sceUmdWaitDriveStat(UMD_WAITFORDISC); } sceUmdActivate(1, "disc0:"); // Mount UMD to disc0: file system sceUmdWaitDriveStat(UMD_WAITFORINIT); // Now you can access the UMD using standard sceIo functions
| int sceUmdCheckMedium | ( | int | a | ) |
Check whether there is a disc in the UMD drive.
| a | - Unknown function, set to 0 |
| int sceUmdRegisterUMDCallBack | ( | int | cbid | ) |
Register a callback for the UMD drive.
| cbid | - A callback ID created from sceKernelCreateCallback |
cbid = sceKernelCreateCallback("UMD Callback", umd_callback); sceUmdRegisterUMDCallback(cbid);
| int sceUmdWaitDriveStat | ( | int | stat | ) |
Wait for a drive to reach a certain state.
| stat | - The drive stat to wait for. |
1.5.2