![]() |
Lua Player Plus Vita
Documentation of lpp-vita
|
Module that handles system related utilities. More...
Enumerations | |
| enum | IOFlags { FREAD , FWRITE , FRDWR , FCREATE } |
| I/O attributes to use with System.openFile. More... | |
| enum | IOSeek { SET , CUR , END } |
| I/O seek modes to use with System.seekFile. More... | |
| enum | PowerTimer { AUTO_SUSPEND_TIMER , SCREEN_OFF_TIMER , SCREEN_DIMMING_TIMER } |
| Power management timer features. More... | |
| enum | ImgFmt { FORMAT_BMP , FORMAT_JPG , FORMAT_PNG } |
| Image format modes to use with System.takeScreenshot. More... | |
| enum | BtnMode { BUTTON_NONE , BUTTON_OK , BUTTON_CANCEL , BUTTON_OK_CANCEL , BUTTON_YES_NO } |
| Buttons schemes for System.setMessage. More... | |
| enum | DlgState { RUNNING , FINISHED , CANCELED } |
| Dialog states for system messages and system keyboard. More... | |
| enum | MntPerm { READ_ONLY , READ_WRITE } |
| Mount permissions for partition mounting. More... | |
Functions | |
| int | System::openFile (string filename, IOFlags flags) |
| Open a file. | |
| void | System::writeFile (int handle, string text, int len) |
| Write into an opened file. | |
| string | System::readFile (int handle, int len) |
| Read from an opened file. | |
| void | System::seekFile (int handle, int pos, IOSeek seek) |
| Move cursor of an opened file. | |
| int | System::sizeFile (int handle) |
| Calculate size of an opened file in bytes. | |
| table | System::statFile (string filename) |
| Extract info of a file/directory. | |
| table | System::statOpenedFile (int handle) |
| Extract info of an opened file. | |
| void | System::closeFile (int handle) |
| Close an opened file. | |
| bool | System::doesFileExist (string filename) |
| Check if a file exists. | |
| bool | System::doesDirExist (string dirname) |
| Check if a folder exists. | |
| void | System::rename (string filename, string filename2) |
| Rename or move a file. | |
| void | System::copyFile (string filename, string filename2) |
| Copy a file. | |
| void | System::deleteFile (string filename) |
| Delete a file. | |
| void | System::deleteDirectory (string dirname) |
| Delete a directory. | |
| void | System::createDirectory (string dirname) |
| Create a new directory. | |
| table | System::listDirectory (string dirname) |
| List a directory contents. | |
| void | System::exit (void) |
| Close the interpreter. | |
| string | System::getFirmware (void) |
| Get unspoofed system firmware version. | |
| string | System::getSpoofedFirmware (void) |
| Get spoofed system firmware version. | |
| string | System::getFactoryFirmware (void) |
| Get factory system firmware version. | |
| void | System::wait (int msecs) |
| Sleep the application for a certain time. | |
| bool | System::isBatteryCharging (void) |
| Check if the battery is under charge. | |
| int | System::getBatteryPercentage (void) |
| Get current battery life percentage. | |
| int | System::getBatteryLife (void) |
| Get current battery life. | |
| int | System::getBatteryCapacity (void) |
| Get current battery capacity. | |
| int | System::getBatteryFullCapacity (void) |
| Get full battery capacity. | |
| int | System::getBatteryTemp (void) |
| Get battery temperature. | |
| int | System::getBatteryVolt (void) |
| Get battery voltage. | |
| int | System::getBatteryHealth (void) |
| Get battery state of health percentage. | |
| int | System::getBatteryCycles (void) |
| Get battery cycles count. | |
| void | System::disableTimer (PowerTimer timer) |
| Disable a power management timer feature. | |
| void | System::enableTimer (PowerTimer timer) |
| Enable a power management timer feature. | |
| void | System::resetTimer (PowerTimer timer) |
| Reset a power management timer feature. | |
| void | System::setCpuSpeed (int clock) |
| Set CPU clock speed. | |
| void | System::setGpuSpeed (int clock) |
| Set GPU clock speed. | |
| void | System::setBusSpeed (int clock) |
| Set BUS clock speed. | |
| int | System::getCpuSpeed (void) |
| Get CPU clock speed. | |
| int | System::getGpuSpeed (void) |
| Get GPU clock speed. | |
| int | System::getBusSpeed (void) |
| Get BUS clock speed. | |
| int | System::getGpuXbarSpeed (void) |
| Get GPU Crossbar clock speed. | |
| void | System::launchEboot (string filename) |
| Launches a binary file. | |
| void | System::launchApp (string titleid) |
| Launches an installed application. | |
| void | System::getFreeSpace (string dev) |
| Get free space for a given device. | |
| void | System::getTotalSpace (string dev) |
| Get total space for a given device. | |
| int[] | System::getTime (void) |
| Get console time. | |
| int[] | System::getDate (void) |
| Get console date. | |
| string | System::getUsername (void) |
| Get account username. | |
| int | System::getLanguage (void) |
| Get console language. | |
| int | System::getModel (void) |
| Get console model. | |
| string | System::getPsId (void) |
| Get console unique PsId. | |
| string | System::getTitle (void) |
| Get running application title. | |
| string | System::getTitleID (void) |
| Get running application title ID. | |
| table | System::extractSfo (string filename) |
| Extract info from an SFO file. | |
| void | System::extractPbp (string filename, string dirname) |
| Extract a PBP file (synchronous). | |
| void | System::extractZip (string filename, string dirname) |
| Extract a ZIP file (synchronous). | |
| void | System::extractFromZip (string filename, string file, string destname) |
| Extract a specific file from a ZIP file (synchronous). | |
| void | System::extractZipAsync (string filename, string dirname) |
| Extract a ZIP file (asynchronous). | |
| void | System::extractFromZipAsync (string filename, string file, string destname) |
| Extract a specific file from a ZIP file (asynchronous). | |
| void | System::compressZip (string path, string filename, int ratio) |
| Compress a file or a folder in a ZIP file (synchronous). | |
| void | System::addToZip (string path, string filename, string parent, int ratio) |
| Add a file or a folder in a ZIP file (synchronous). | |
| int | System::getAsyncState (void) |
| Get current state of an asynchronous task. | |
| string | System::getAsyncResult (void) |
| Get result from a finished asynchronous task. | |
| void | System::takeScreenshot (string filename, ImgFmt format, int ratio) |
| Take a screenshot. | |
| void | System::executeUri (string uri) |
| Execute an URI call. | |
| int | System::reboot (void) |
| Reboot the console. | |
| int | System::shutdown (void) |
| Shutdown the console. | |
| int | System::standby (void) |
| Put the console in standby. | |
| bool | System::isSafeMode (void) |
| Get if application is running in safe mode. | |
| void | System::setMessage (string text, bool progressbar, BtnMode buttons) |
| Start a system message instance. | |
| DlgState | System::getMessageState (void) |
| Get current system message instance state. | |
| void | System::setMessageProgress (int progress) |
| Set current progress for the system message instance. | |
| void | System::setMessageProgMsg (string text) |
| Set a submessage for the system message instance. | |
| void | System::closeMessage (void) |
| Close the current system message instance. | |
| void | System::unmountPartition (int idx) |
| Unmount an already mounted partition. | |
| void | System::mountPartition (int idx, MntPerm perms) |
| Mount an unmounted partition. | |
| void | System::installApp (string dir) |
| Install an extracted app. | |
| void | System::uninstallApp (string titleid) |
| Uninstall an installed app. | |
| bool | System::doesAppExist (string titleid) |
| Check if an app is installed. | |
| string | System::getBootParams (void) |
| Retrieve params used at app boot. | |
| int | System::loadUserPlugin (string path) |
| Load and start an user plugin. | |
| int | System::loadKernelPlugin (string path) |
| Load and start a kernel plugin. | |
| void | System::unloadUserPlugin (int plug_id) |
| Stop and unload an user plugin. | |
| void | System::unmountMountpoint (string mnt) |
| Unmount a virtual mountpoint. | |
| void | System::consolePrint (string text) |
| Print a message on system console. | |
Module that handles system related utilities.
| enum IOFlags |
I/O attributes to use with System.openFile.
| Enumerator | |
|---|---|
| FREAD | Read attribute. |
| FWRITE | Write attribute. |
| FRDWR | Read/Write attribute. |
| FCREATE | Create/Write attribute. |
| enum IOSeek |
I/O seek modes to use with System.seekFile.
| Enumerator | |
|---|---|
| SET | Starts from the begin of the file. |
| CUR | Starts from current position. |
| END | Starts from the end of the file. |
| enum PowerTimer |
| enum ImgFmt |
Image format modes to use with System.takeScreenshot.
| Enumerator | |
|---|---|
| FORMAT_BMP | 32bpp BMP format. |
| FORMAT_JPG | JPG format. |
| FORMAT_PNG | 8bpp paletted PNG format. |
| enum BtnMode |
Buttons schemes for System.setMessage.
| Enumerator | |
|---|---|
| BUTTON_NONE | No buttons. |
| BUTTON_OK | OK button only. |
| BUTTON_CANCEL | CANCEL button only. |
| BUTTON_OK_CANCEL | OK and CANCEL buttons. |
| BUTTON_YES_NO | YES and NO buttons. |
| enum DlgState |
| enum MntPerm |
| int System::openFile | ( | string | filename, |
| IOFlags | flags | ||
| ) |
Open a file.
| filename | - Filename to be opened. |
| flags | - An attribute flag. |
| void System::writeFile | ( | int | handle, |
| string | text, | ||
| int | len | ||
| ) |
Write into an opened file.
| handle | - A file handle opened with System.openFile. |
| text | - The text to write on file. |
| len | - Length of the text. |
| string System::readFile | ( | int | handle, |
| int | len | ||
| ) |
Read from an opened file.
| handle | - A file handle opened with System.openFile. |
| len | - Length of the string to read in bytes. |
| void System::seekFile | ( | int | handle, |
| int | pos, | ||
| IOSeek | seek | ||
| ) |
Move cursor of an opened file.
| handle | - A file handle opened with System.openFile. |
| pos | - Position to set. |
| seek | - Start point for the position. |
| int System::sizeFile | ( | int | handle | ) |
Calculate size of an opened file in bytes.
| handle | - A file handle opened with System.openFile. |
| table System::statFile | ( | string | filename | ) |
Extract info of a file/directory.
| filename | - Filename to be checked. |
| table System::statOpenedFile | ( | int | handle | ) |
Extract info of an opened file.
| handle | - A file handle opened with System.openFile. |
| void System::closeFile | ( | int | handle | ) |
| bool System::doesFileExist | ( | string | filename | ) |
Check if a file exists.
| filename | - Filename to be checked. |
| bool System::doesDirExist | ( | string | dirname | ) |
Check if a folder exists.
| dirname | - Folder name to be checked. |
| void System::rename | ( | string | filename, |
| string | filename2 | ||
| ) |
Rename or move a file.
| filename | - Filename to be renamed. |
| filename2 | - New filename. |
| void System::copyFile | ( | string | filename, |
| string | filename2 | ||
| ) |
Copy a file.
| filename | - Filename to be copied. |
| filename2 | - New filename. |
| void System::deleteFile | ( | string | filename | ) |
Delete a file.
| filename | - Filename to be removed. |
| void System::deleteDirectory | ( | string | dirname | ) |
Delete a directory.
| dirname | - Path to be removed. |
| void System::createDirectory | ( | string | dirname | ) |
Create a new directory.
| dirname | - Path to be created. |
| table System::listDirectory | ( | string | dirname | ) |
List a directory contents.
| dirname | - Path to be listed. |
| void System::exit | ( | void | ) |
Close the interpreter.
| string System::getFirmware | ( | void | ) |
Get unspoofed system firmware version.
| string System::getSpoofedFirmware | ( | void | ) |
Get spoofed system firmware version.
| string System::getFactoryFirmware | ( | void | ) |
Get factory system firmware version.
| void System::wait | ( | int | msecs | ) |
Sleep the application for a certain time.
| msecs | - Time to wait in microseconds. |
| bool System::isBatteryCharging | ( | void | ) |
Check if the battery is under charge.
| int System::getBatteryPercentage | ( | void | ) |
Get current battery life percentage.
| int System::getBatteryLife | ( | void | ) |
Get current battery life.
| int System::getBatteryCapacity | ( | void | ) |
Get current battery capacity.
| int System::getBatteryFullCapacity | ( | void | ) |
Get full battery capacity.
| int System::getBatteryTemp | ( | void | ) |
Get battery temperature.
| int System::getBatteryVolt | ( | void | ) |
Get battery voltage.
| int System::getBatteryHealth | ( | void | ) |
Get battery state of health percentage.
| int System::getBatteryCycles | ( | void | ) |
Get battery cycles count.
| void System::disableTimer | ( | PowerTimer | timer | ) |
Disable a power management timer feature.
| timer | - The timer feature to disable. |
| void System::enableTimer | ( | PowerTimer | timer | ) |
Enable a power management timer feature.
| timer | - The timer feature to enable. |
| void System::resetTimer | ( | PowerTimer | timer | ) |
Reset a power management timer feature.
| timer | - The timer feature to reset. |
| void System::setCpuSpeed | ( | int | clock | ) |
Set CPU clock speed.
| clock | - The clock to set in Mhz. |
| void System::setGpuSpeed | ( | int | clock | ) |
Set GPU clock speed.
| clock | - The clock to set in Mhz. |
| void System::setBusSpeed | ( | int | clock | ) |
Set BUS clock speed.
| clock | - The clock to set in Mhz. |
| int System::getCpuSpeed | ( | void | ) |
| int System::getGpuSpeed | ( | void | ) |
| int System::getBusSpeed | ( | void | ) |
| int System::getGpuXbarSpeed | ( | void | ) |
Get GPU Crossbar clock speed.
| void System::launchEboot | ( | string | filename | ) |
Launches a binary file.
| filename | - The file to start. |
| void System::launchApp | ( | string | titleid | ) |
Launches an installed application.
| titleid | - The title ID of the application to start. |
| void System::getFreeSpace | ( | string | dev | ) |
Get free space for a given device.
| dev | - The device name. |
| void System::getTotalSpace | ( | string | dev | ) |
Get total space for a given device.
| dev | - The device name. |
| int[] System::getTime | ( | void | ) |
Get console time.
| int[] System::getDate | ( | void | ) |
Get console date.
| string System::getUsername | ( | void | ) |
Get account username.
| int System::getLanguage | ( | void | ) |
Get console language.
| int System::getModel | ( | void | ) |
Get console model.
| string System::getPsId | ( | void | ) |
Get console unique PsId.
| string System::getTitle | ( | void | ) |
Get running application title.
| string System::getTitleID | ( | void | ) |
Get running application title ID.
| table System::extractSfo | ( | string | filename | ) |
Extract info from an SFO file.
| filename | - The filename to extract info from. |
| void System::extractPbp | ( | string | filename, |
| string | dirname | ||
| ) |
Extract a PBP file (synchronous).
| filename | - The filename to extract. |
| dirname | - The path where to extract files. |
| void System::extractZip | ( | string | filename, |
| string | dirname | ||
| ) |
Extract a ZIP file (synchronous).
| filename | - The filename to extract. |
| dirname | - The path where to extract files. |
| void System::extractFromZip | ( | string | filename, |
| string | file, | ||
| string | destname | ||
| ) |
Extract a specific file from a ZIP file (synchronous).
| filename | - The filename of the ZIP archive. |
| file | - The file to extract. |
| destname | - The filename where to extract file. |
| void System::extractZipAsync | ( | string | filename, |
| string | dirname | ||
| ) |
Extract a ZIP file (asynchronous).
| filename | - The filename to extract. |
| dirname | - The path where to extract files. |
| void System::extractFromZipAsync | ( | string | filename, |
| string | file, | ||
| string | destname | ||
| ) |
Extract a specific file from a ZIP file (asynchronous).
| filename | - The filename of the ZIP archive. |
| file | - The file to extract. |
| destname | - The filename where to extract file. |
| void System::compressZip | ( | string | path, |
| string | filename, | ||
| int | ratio | ||
| ) |
Compress a file or a folder in a ZIP file (synchronous).
| path | - The filename or path to compress. |
| filename | - The filename of the resulting zip file. |
| ratio | - The compression ratio to use (optional). |
| void System::addToZip | ( | string | path, |
| string | filename, | ||
| string | parent, | ||
| int | ratio | ||
| ) |
Add a file or a folder in a ZIP file (synchronous).
| path | - The filename or path to compress. |
| filename | - The filename of the resulting zip file. |
| parent | - The parent folder inside the zip file where to place the path. |
| ratio | - The compression ratio to use (optional). |
| int System::getAsyncState | ( | void | ) |
Get current state of an asynchronous task.
| string System::getAsyncResult | ( | void | ) |
Get result from a finished asynchronous task.
| void System::takeScreenshot | ( | string | filename, |
| ImgFmt | format, | ||
| int | ratio | ||
| ) |
Take a screenshot.
| filename | - The filename of the screenshot output. |
| format | - The format to use for the output file (optional). |
| ratio | - Compression ratio for JPG compression (optional). |
| void System::executeUri | ( | string | uri | ) |
Execute an URI call.
| uri | - URI to exec. |
| int System::reboot | ( | void | ) |
Reboot the console.
| int System::shutdown | ( | void | ) |
Shutdown the console.
| int System::standby | ( | void | ) |
Put the console in standby.
| bool System::isSafeMode | ( | void | ) |
Get if application is running in safe mode.
| void System::setMessage | ( | string | text, |
| bool | progressbar, | ||
| BtnMode | buttons | ||
| ) |
Start a system message instance.
| text | - The text of the system message. |
| progressbar | - Progressbar mode. |
| buttons | - Buttons scheme to use (optional). |
| DlgState System::getMessageState | ( | void | ) |
Get current system message instance state.
| void System::setMessageProgress | ( | int | progress | ) |
Set current progress for the system message instance.
| progress | - Progress percentage. |
| void System::setMessageProgMsg | ( | string | text | ) |
Set a submessage for the system message instance.
| text | - Submessage text to set. |
| void System::closeMessage | ( | void | ) |
Close the current system message instance.
| void System::unmountPartition | ( | int | idx | ) |
Unmount an already mounted partition.
| idx | - The index number of the partition. |
| void System::mountPartition | ( | int | idx, |
| MntPerm | perms | ||
| ) |
Mount an unmounted partition.
| idx | - The index number of the partition. |
| perms | - Permissions to set for the mounted partition. |
| void System::installApp | ( | string | dir | ) |
Install an extracted app.
| dir | - The path to the extracted app. |
| void System::uninstallApp | ( | string | titleid | ) |
Uninstall an installed app.
| titleid | - The titleid of the app to uninstall. |
| bool System::doesAppExist | ( | string | titleid | ) |
Check if an app is installed.
| titleid | - The titleid of the app to check. |
| string System::getBootParams | ( | void | ) |
Retrieve params used at app boot.
| int System::loadUserPlugin | ( | string | path | ) |
Load and start an user plugin.
| path | - The path to the plugin to load. |
| int System::loadKernelPlugin | ( | string | path | ) |
Load and start a kernel plugin.
| path | - The path to the plugin to load. |
| void System::unloadUserPlugin | ( | int | plug_id | ) |
Stop and unload an user plugin.
| plug_id | - The module identifier for the plugin to unload. |
| void System::unmountMountpoint | ( | string | mnt | ) |
Unmount a virtual mountpoint.
| mnt | - The mountpoint to unmount. |
| void System::consolePrint | ( | string | text | ) |
Print a message on system console.
| text | - The text to print. |