LifeLua 30-05-2025
Documentation for LifeLua
|
Lua OS library extension. More...
Functions | |
nil | os.delay (number seconds) |
nil | os.exit () |
nil | os.delaycb (number seconds) |
nil | os.uri (string uri, number flag) |
nil | os.shuttersound (SceShutterSoundType shuttertype) |
nil | os.infobar (SceAppMgrInfoBarVisibility state, SceAppMgrInfoBarColor color, SceAppMgrInfoBarTransparency transparency) |
nil | os.lock (boolean lock, SceShellUtilLockType type,...) |
nil | os.notification (string text) |
nil | os.videoexport (string path) |
nil | os.photoexport (string path) |
nil | os.musicexport (string path) |
nil | os.shutdown () |
nil | os.standby () |
nil | os.restart () |
string | os.title () |
string | os.titleid () |
nil | os.closeapp (string titleid) |
nil | os.closeotherapps () |
nil | os.execute (string path) |
boolean | os.isbatterylow () |
boolean | os.unsafe () |
boolean | os.appexists (string titleid) |
nil | os.installdir (string path) |
nil | os.appdelete (string titleid) |
string | os.launchparams () |
string | os.importphoto (number r, number g, number b, number a) |
nil | os.abortimportphoto () |
number or nil | os.cpu (number clock) |
number or nil | os.bus (number clock) |
number or nil | os.gpu (number clock) |
number or nil | os.xbar (number clock) |
nil | os.displayon () |
nil | os.displayoff () |
nil os.abortimportphoto | ( | ) |
Aborts currently running photo import dialog
nil os.appdelete | ( | string | titleid | ) |
Deletes an app
boolean os.appexists | ( | string | titleid | ) |
Checks if an app exists
number or nil os.bus | ( | number | clock | ) |
Gets or sets the BUS' clock speed
nil os.closeapp | ( | string | titleid | ) |
Closes a running app by its title ID
nil os.closeotherapps | ( | ) |
Closes all of the other running apps
number or nil os.cpu | ( | number | clock | ) |
Gets or sets the CPU's clock speed
nil os.delay | ( | number | seconds | ) |
Delay the app for a certain amount of time
seconds | The number of seconds to delay (defaults to 0) |
nil os.delaycb | ( | number | seconds | ) |
Delay the app for a certain amount of time and handle any callbacks
seconds | The number of seconds to delay (defaults to 0) |
nil os.displayoff | ( | ) |
Turns the display off
nil os.displayon | ( | ) |
Turns the display on
nil os.execute | ( | string | path | ) |
Launches a SELF executable (eboot.bin)
nil os.exit | ( | ) |
Exits the app
number or nil os.gpu | ( | number | clock | ) |
Gets or sets the GPU's clock speed
string os.importphoto | ( | number | r, |
number | g, | ||
number | b, | ||
number | a ) |
Opens a photo import dialog
LifeLuaPhotoImportDialog
if it exists. a | Optional, will default to 255 (0xFF ) |
nil os.infobar | ( | SceAppMgrInfoBarVisibility | state, |
SceAppMgrInfoBarColor | color, | ||
SceAppMgrInfoBarTransparency | transparency ) |
Sets the state of the infobar
nil os.installdir | ( | string | path | ) |
Installs a folder app (not a .VPK, but an app in a directory with what a .VPK includes)
boolean os.isbatterylow | ( | ) |
Gets if the battery is low
string os.launchparams | ( | ) |
Gets launch parameters
nil os.lock | ( | boolean | lock, |
SceShellUtilLockType | type, | ||
... ) |
Locks some shell functionality (e. g. the PS button, the quick menu, the power off menu, USB connection etc.)
lock
has been defined as a boolean, you can add as many SceShellUtilLockType
values as you want as the next arguments nil os.musicexport | ( | string | path | ) |
Exports an audio (.mp3) file
nil os.notification | ( | string | text | ) |
Sends a notification
nil os.photoexport | ( | string | path | ) |
Exports a photo (.png, .jpg/.jpeg, .bmp) file
nil os.restart | ( | ) |
Restarts the PS Vita
nil os.shutdown | ( | ) |
Turns off the PS Vita completely
os.suspend
does the same thing nil os.shuttersound | ( | SceShutterSoundType | shuttertype | ) |
Play a shutter sound
nil os.standby | ( | ) |
Puts the PS Vita into standby
string os.title | ( | ) |
Gets the app's title
string os.titleid | ( | ) |
Gets the app's title ID
boolean os.unsafe | ( | ) |
Checks if the app is in unsafe mode
nil os.uri | ( | string | uri, |
number | flag ) |
Opens an URI
flag | Optional, will default to 0xFFFFF if not set |
nil os.videoexport | ( | string | path | ) |
Exports a video (.mp4) file
number or nil os.xbar | ( | number | clock | ) |
Gets or sets the XBAR's clock speed