All Functions Modules Pages
umd

Functions

BOOLEAN umd.init ()
 Initializes UMD acces. More...
 
BOOLEAN umd.present ()
 UMD inserted into the PSP. More...
 
STRING umd.size ()
 Calculates the inserted UMD size. More...
 
STRING umd.type ()
 UMD type. More...
 
STRING umd.gameid ()
 UMD GAMEID. More...
 
TABLE umd.info ()
 Obtains UMD info (only works for GAME UMDs). More...
 
NUMBER umd.dumpiso (STRING path)
 Dump UMD. More...
 
NIL umd.launch ()
 Run the UMD. More...
 
NIL umd.term ()
 Finishes the UMD access. More...
 

Detailed Description

UMD functions

Function Documentation

BOOLEAN umd.init ( )

Initializes UMD acces.

Returns
true/false According to whether if inilitialize correctly.
Note
For initializing correctly must have an UMD into the console.
BOOLEAN umd.present ( )

UMD inserted into the PSP.

Returns
true/false According to whether if is an UMD into the console.
STRING umd.size ( )

Calculates the inserted UMD size.

Returns
Total size of the UMD in format STRING rounded 4 decimals.
STRING umd.type ( )

UMD type.

Returns
STRING indicating UMD type: "GAME", "VIDEO", "AUDIO" or "-".
STRING umd.gameid ( )

UMD GAMEID.

Returns
The UMD GAMEID. For example: "ULUS99999"
TABLE umd.info ( )

Obtains UMD info (only works for GAME UMDs).

Returns
A table with these fields:
  • APP_VER
  • BOOTABLE
  • CATEGORY
  • DISC_ID
  • DISC_NUMBER
  • DISC_TOTAL
  • DISC_VERSION
  • GAMEDATA_ID
  • HRKGMP_VER
  • PARENTAL_LEVEL
  • PSP_SYSTEM_VER
  • REGION
  • TITLE
  • USE_USB
Warning
The previous list show the most common fields, however, the returned table couldn't have all the listed fields, or even it could have other non-listed fields, so is very important to make sure any field exists before use it.
NUMBER umd.dumpiso ( STRING  path)

Dump UMD.

Parameters
pathPath where backup will be generated, it must exist and must finalize with "/". For example:("ms0:/ISO/").
Note
  • Path cannot have name, the GAMEID is being concatenated to the path: "ms0:/ISO/ULUS99999.ISO".
  • This function can use the onDumpUmd() callback, more information here .
Returns
a number, 1 if success, 0 otherwise.
NIL umd.launch ( )

Run the UMD.

Returns
Nothing.
Note
Only run GAME UMD.
NIL umd.term ( )

Finishes the UMD access.

Returns
Nothing.