Module Joyau::Umd
In: Drawable.cpp

Methods

Constants

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.

Public Class methods

Mounts the UMD.

[Source]

/*
  Mounts the UMD.
*/
VALUE Kernel_UmdMount(VALUE self)
{
   sceUmdActivate(1, "disc0:");
   sceUmdWaitDriveStat(PSP_UMD_READY);

   return Qnil;
}

Allows to change the actual UMD.

[Source]

/*
  Allows to change the actual UMD.
*/
VALUE Kernel_UmdPermitReplace(VALUE self)
{
   sceUmdReplacePermit();
   return Qnil;
}

Returns whether a UMD is inside the PSP.

[Source]

/*
  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.

[Source]

/*
  Prohibits to change the actual UMD.
*/
VALUE Kernel_UmdProhibitReplace(VALUE self)
{
   sceUmdReplaceProhibit();
   return Qnil;
}

Unmount the UMD.

[Source]

/*
  Unmount the UMD.
*/
VALUE Kernel_UmdUmount(VALUE self)
{
   sceUmdDeactivate(1, "discO:");
   return Qnil;
}

Wait for a state of the UMD drive.

[Source]

/*
  call-seq: waitState(state)

  Wait for a state of the UMD drive.
*/
VALUE Kernel_UmdWaitState(VALUE self, VALUE state)
{
   sceUmdWaitDriveStat(FIX2INT(state));
   return Qnil;
}

[Validate]