Lua Player Plus Vita
Documentation of lpp-vita
Registry

Module that handles system registry. More...

Enumerations

enum  RegType { TYPE_STRING , TYPE_NUMBER , TYPE_BINARY }
 Registry types. More...
 

Functions

auto Registry::getKey (string category, string name, RegType type)
 Get a value for a given key. More...
 
auto Registry::getSysKey (int id, RegType type)
 Get a value for a given system key. More...
 
void Registry::setKey (string category, string name, RegType type, auto value, int size)
 Set a value for a given key. More...
 

Detailed Description

Module that handles system registry.

Enumeration Type Documentation

◆ RegType

enum RegType

Registry types.

Enumerator
TYPE_STRING 

String type.

TYPE_NUMBER 

Integer type.

TYPE_BINARY 

Binary Type.

Function Documentation

◆ getKey()

auto Registry::getKey ( string  category,
string  name,
RegType  type 
)

Get a value for a given key.

Usage example:
flight_mode = Registry.getKey("/CONFIG/SYSTEM/", "flight_mode", TYPE_NUMBER)
Definition: luaRegistry.cpp:16
@ TYPE_NUMBER
Basic number type.
Definition: luaKeyboard.cpp:22
auto getKey(string category, string name, RegType type)
Get a value for a given key.
Parameters
category- The category from which to take the value.
name- The key related to the value.
type- The type of the value.
Returns
The requested value.
Note
This function is available only in unsafe mode.

◆ getSysKey()

auto Registry::getSysKey ( int  id,
RegType  type 
)

Get a value for a given system key.

Usage example:
auto getSysKey(int id, RegType type)
Get a value for a given system key.
Parameters
id- The identifier of the key.
type- The type of the value.
Returns
The requested value.
Note
This function is available only in unsafe mode.

◆ setKey()

void Registry::setKey ( string  category,
string  name,
RegType  type,
auto  value,
int  size 
)

Set a value for a given key.

Usage example:
flight_mode = Registry.setKey("/CONFIG/SYSTEM/", "flight_mode", TYPE_NUMBER, 1)
void setKey(string category, string name, RegType type, auto value, int size)
Set a value for a given key.
Parameters
category- The category from which to take the value.
name- The key related to the value.
type- The type of the value.
value- The value to set.
size- The size of the value (optional).
Note
This function is available only in unsafe mode.