| Module | Joyau::Umd |
| In: |
Drawable.cpp
|
| NOT_PRESENT | = | PSP_UMD_NOT_PRESENT | No UMD inside the drive. | |
| PRESENT | = | PSP_UMD_PRESENT | A UMD is inside the drive. | |
| CHANGED | = | PSP_UMD_CHANGED | Changed the UMD present in the driver. | |
| INITING | = | PSP_UMD_INITING | UMD initing. | |
| INITED | = | PSP_UMD_INITED | UMD inited. | |
| READY | = | PSP_UMD_READY | UMD ready. |
Mounts the UMD.
/*
Mounts the UMD.
*/
VALUE Kernel_UmdMount(VALUE self)
{
sceUmdActivate(1, "disc0:");
sceUmdWaitDriveStat(PSP_UMD_READY);
return Qnil;
}
Allows to change the actual UMD.
/*
Allows to change the actual UMD.
*/
VALUE Kernel_UmdPermitReplace(VALUE self)
{
sceUmdReplacePermit();
return Qnil;
}
Returns whether a UMD is inside the PSP.
/*
Returns whether a UMD is inside the PSP.
*/
VALUE Kernel_UmdCheck(VALUE self)
{
if (sceUmdCheckMedium() == 0)
return Qfalse;
return Qtrue;
}
Prohibits to change the actual UMD.
/*
Prohibits to change the actual UMD.
*/
VALUE Kernel_UmdProhibitReplace(VALUE self)
{
sceUmdReplaceProhibit();
return Qnil;
}
Unmount the UMD.
/*
Unmount the UMD.
*/
VALUE Kernel_UmdUmount(VALUE self)
{
sceUmdDeactivate(1, "discO:");
return Qnil;
}