vitasdk
Documentation of the vitasdk

Exports for User. More...

Enumerations

enum  SceRegMgrSystemParam {
  SCE_REGMGR_SYSTEM_PARAM_ID_BUTTON_ASSIGN = 0x00229142 , SCE_REGMGR_SYSTEM_PARAM_ID_LANGUAGE = 0x00037502 , SCE_REGMGR_SYSTEM_PARAM_ID_DATE_FORMAT = 0x00088776 , SCE_REGMGR_SYSTEM_PARAM_ID_TIME_FORMAT = 0x00668503 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_TIME_ZONE = 0x00100591 , SCE_REGMGR_SYSTEM_PARAM_ID_SUMMER_TIME = 0x00760538 , SCE_REGMGR_SYSTEM_PARAM_ID_PARENTAL_PASSCODE = 0x00186122 , SCE_REGMGR_SYSTEM_PARAM_ID_USERNAME = 0x00598438 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_NP_ACCOUNT_ID = 0x00450F32 , SCE_REGMGR_SYSTEM_PARAM_ID_TRENDMICRO_SERVICE = 0x0081649F , SCE_REGMGR_SYSTEM_PARAM_ID_TRENDMICRO_EC_TTL = 0x00068303 , SCE_REGMGR_SYSTEM_PARAM_ID_TRENDMICRO_EC_TTL_UPDATE_TIME = 0x001B2292 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_TRENDMICRO_SERVICE_SUB_STATUS = 0x00872621 , SCE_REGMGR_SYSTEM_PARAM_ID_NP_DEBUG_INGAME_COMMERCE2 = 0x00156489 , SCE_REGMGR_SYSTEM_PARAM_ID_NP_ENV = 0x00033818 , SCE_REGMGR_SYSTEM_PARAM_ID_DEVENV_GPI_SWITCH = 0x003CB6A4 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_NP_DEBUG = 0x000B73CD , SCE_REGMGR_SYSTEM_PARAM_ID_NP_NAV_ONLY = 0x000A0495 , SCE_REGMGR_SYSTEM_PARAM_ID_NP_AD_CLOCK_DIFF = 0x000B6ECD , SCE_REGMGR_SYSTEM_PARAM_ID_NP_GEO_FILTERING = 0x000D18E5 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TEST_PATCH = 0x00313905 , SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_SERVER = 0x00646A8E , SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_PORT = 0x0022B191 , SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_USER_NAME = 0x008EB468 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_PASSWORD = 0x00168B9B , SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_FLAG = 0x006FF829 , SCE_REGMGR_SYSTEM_PARAM_ID_BROWSER_WEB_SECURITY_STATUS = 0x00612B3E , SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TROPHY_SETUP_DIALOG_DEBUG = 0x003317A1 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_NP_COUNTRY = 0x008F94F9 , SCE_REGMGR_SYSTEM_PARAM_ID_NET_PSPNET_ADHOC_SSID_PREFIX = 0x00134C03 , SCE_REGMGR_SYSTEM_PARAM_ID_KEY_PAD = 0x00683DCD , SCE_REGMGR_SYSTEM_PARAM_ID_MUSIC_IMPOSE_AUDIO_BALANCE = 0x008E3939 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_GAME_SHOW_DEBUG_INFO = 0x00146E23 , SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_SDSLOT_BROKEN = 0x00424500 , SCE_REGMGR_SYSTEM_PARAM_ID_SPECIFIC_IDU_MODE = 0x0051F6AE , SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_FREE_SPACE = 0x00154A2C ,
  SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_FREE_SPACE_QUOTA = 0x0025CE9A , SCE_REGMGR_SYSTEM_PARAM_ID_TWITTER_ACCESS_TOKEN = 0x005F6737 , SCE_REGMGR_SYSTEM_PARAM_ID_TWITTER_ACCESS_TOKEN_SECRET = 0x0091F34F , SCE_REGMGR_SYSTEM_PARAM_ID_PSM_REVOCATION_CHECK_REQ = 0x0093C981 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_NP2_FAKE_PLUS = 0x007C9764 , SCE_REGMGR_SYSTEM_PARAM_ID_SHELL_VOICE_PRIORITY = 0x00971FA1 , SCE_REGMGR_SYSTEM_PARAM_ID_NET_SSL_CERT_IGNORABLE = 0x00563BFE , SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_WOL_TARGET_MAC_ADDRESS = 0x008D89EB ,
  SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_TARGET_NAME = 0x004E7A16 , SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_INITIAL_TARGET = 0x00987180 , SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_PASSCODE_CLIENT = 0x000504E4 , SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_ENABLE_MEDIA_TRANSFER = 0x0036F14E ,
  SCE_REGMGR_SYSTEM_PARAM_ID_DISPLAY_HDMI_OUT_SCALING_RATIO = 0x002FDFB4 , SCE_REGMGR_SYSTEM_PARAM_ID_PS4LINK_COUNTER = 0x004F7E60 , SCE_REGMGR_SYSTEM_PARAM_ID_PS4LINK_KEYS = 0x0094E320 , SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_NO_MEMORY_CARD = 0x009623D0 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_CONTENTS_MAX = 0x007D12C4 , SCE_REGMGR_SYSTEM_PARAM_ID_PARENTAL_STORE_START_CONTROL = 0x0089C9CF , SCE_REGMGR_SYSTEM_PARAM_ID_DATE_IS_SUMMER_TIME = 0x007F9315 , SCE_REGMGR_SYSTEM_PARAM_ID_PSNOW_APP_CACHED_URL = 0x00988B81 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_BROWSER_DEBUG_NET_DBG_CONFIG = 0x008C3860 , SCE_REGMGR_SYSTEM_PARAM_ID_NP2_FAKE_RATELIMIT = 0x00505BCE , SCE_REGMGR_SYSTEM_PARAM_ID_NP2_IGNORE_TITLEID = 0x00528C0D , SCE_REGMGR_SYSTEM_PARAM_ID_ACCESSIBILITY_LARGE_TEXT = 0x00023FC2 ,
  SCE_REGMGR_SYSTEM_PARAM_ID_ACCESSIBILITY_BOLD_TEXT = 0x00611DC9 , SCE_REGMGR_SYSTEM_PARAM_ID_ACCESSIBILITY_CONTRAST = 0x008A2AD7 , SCE_REGMGR_SYSTEM_PARAM_ID_PARENTAL_CONTENT_START_CONTROL = 0x00711659
}
 System-parameter IDs accepted by the SceRegMgrForGame exports on FW 3.60. More...
 

Functions

int sceRegMgrGetKeyBin (const char *category, const char *name, void *buf, int size)
 Get a key's information by category and name.
 
int sceRegMgrGetKeyInt (const char *category, const char *name, int *buf)
 Get a key's information by category and name.
 
int sceRegMgrGetKeyStr (const char *category, const char *name, char *buf, const int size)
 Get a key's information by category and name.
 
int sceRegMgrSetKeyBin (const char *category, const char *name, void *buf, int size)
 Set a key's information by category and name.
 
int sceRegMgrSetKeyInt (const char *category, const char *name, int buf)
 Set a key's information by category and name.
 
int sceRegMgrSetKeyStr (const char *category, const char *name, char *buf, const int size)
 Set a key's information by category and name.
 
int sceRegMgrGetInitVals (const char *category, char *buf, const int elements_number)
 Get all keys' initial information by category (from os0:kd/registry.db0)
 
int sceRegMgrGetKeys (const char *category, char *buf, const int elements_number)
 Get all keys' information by category.
 
int sceRegMgrSetKeys (const char *category, char *buf, const int elements_number)
 Set all keys' information by category.
 
int sceRegMgrSystemParamGetInt (const int id, int *buf)
 Get a system param key's information by id.
 
int sceRegMgrSystemParamGetStr (const int id, char *buf, const int size)
 Get a system param key's information by id.
 
int sceRegMgrGetRegVersion (int version, char *buf)
 Get the registry version.
 
SceInt32 sceRegMgrSystemParamGetBin (SceRegMgrSystemParam id, void *buf, SceSize buf_size)
 Gets a system parameter as binary data.
 
SceInt32 sceRegMgrSystemParamSetBin (SceRegMgrSystemParam id, const void *buf, SceSize buf_size)
 Sets a writable system parameter from binary data.
 
SceInt32 sceRegMgrSystemParamSetInt (SceRegMgrSystemParam id, SceInt32 value)
 Sets a writable 32-bit integer system parameter.
 
SceInt32 sceRegMgrSystemParamSetStr (SceRegMgrSystemParam id, const char *buf, SceSize buf_size)
 Sets a writable string system parameter.
 

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceRegistryMgr_stub



Enumeration Type Documentation

◆ SceRegMgrSystemParam

System-parameter IDs accepted by the SceRegMgrForGame exports on FW 3.60.

Each ID maps to the registry category and key shown in its comment. The setter functions accept only entries explicitly marked writable; using a known read-only ID returns 0x800D0015.

Enumerator
SCE_REGMGR_SYSTEM_PARAM_ID_BUTTON_ASSIGN 

/CONFIG/SYSTEM/button_assign.

SCE_REGMGR_SYSTEM_PARAM_ID_LANGUAGE 

/CONFIG/SYSTEM/language.

SCE_REGMGR_SYSTEM_PARAM_ID_DATE_FORMAT 

/CONFIG/DATE/date_format.

SCE_REGMGR_SYSTEM_PARAM_ID_TIME_FORMAT 

/CONFIG/DATE/time_format.

SCE_REGMGR_SYSTEM_PARAM_ID_TIME_ZONE 

/CONFIG/DATE/time_zone.

SCE_REGMGR_SYSTEM_PARAM_ID_SUMMER_TIME 

/CONFIG/DATE/summer_time.

SCE_REGMGR_SYSTEM_PARAM_ID_PARENTAL_PASSCODE 

/CONFIG/SECURITY/PARENTAL/passcode.

SCE_REGMGR_SYSTEM_PARAM_ID_USERNAME 

/CONFIG/SYSTEM/username.

SCE_REGMGR_SYSTEM_PARAM_ID_NP_ACCOUNT_ID 

/CONFIG/NP/account_id.

SCE_REGMGR_SYSTEM_PARAM_ID_TRENDMICRO_SERVICE 

/CONFIG/BROWSER/ADDIN/TRENDMICRO/tm_service; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_TRENDMICRO_EC_TTL 

/CONFIG/BROWSER/ADDIN/TRENDMICRO/tm_ec_ttl; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_TRENDMICRO_EC_TTL_UPDATE_TIME 

/CONFIG/BROWSER/ADDIN/TRENDMICRO/tm_ec_ttl_update_time; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_TRENDMICRO_SERVICE_SUB_STATUS 

/CONFIG/BROWSER/ADDIN/TRENDMICRO/tm_service_sub_status; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_NP_DEBUG_INGAME_COMMERCE2 

/CONFIG/NP/debug_ingame_commerce2.

SCE_REGMGR_SYSTEM_PARAM_ID_NP_ENV 

/CONFIG/NP/env.

SCE_REGMGR_SYSTEM_PARAM_ID_DEVENV_GPI_SWITCH 

/DEVENV/TOOL/gpi_switch.

SCE_REGMGR_SYSTEM_PARAM_ID_NP_DEBUG 

/CONFIG/NP/debug.

SCE_REGMGR_SYSTEM_PARAM_ID_NP_NAV_ONLY 

/CONFIG/NP/nav_only.

SCE_REGMGR_SYSTEM_PARAM_ID_NP_AD_CLOCK_DIFF 

/CONFIG/NP/np_ad_clock_diff.

SCE_REGMGR_SYSTEM_PARAM_ID_NP_GEO_FILTERING 

/CONFIG/NP/np_geo_filtering.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TEST_PATCH 

/CONFIG/NP2/test_patch.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_SERVER 

/CONFIG/NP2/tpps_proxy_server.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_PORT 

/CONFIG/NP2/tpps_proxy_port.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_USER_NAME 

/CONFIG/NP2/tpps_proxy_user_name.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_PASSWORD 

/CONFIG/NP2/tpps_proxy_password.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TPPS_PROXY_FLAG 

/CONFIG/NP2/tpps_proxy_flag.

SCE_REGMGR_SYSTEM_PARAM_ID_BROWSER_WEB_SECURITY_STATUS 

/CONFIG/BROWSER/web_security_status; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_TROPHY_SETUP_DIALOG_DEBUG 

/CONFIG/NP2/trophy_setup_dialog_debug.

SCE_REGMGR_SYSTEM_PARAM_ID_NP_COUNTRY 

/CONFIG/NP/country.

SCE_REGMGR_SYSTEM_PARAM_ID_NET_PSPNET_ADHOC_SSID_PREFIX 

/CONFIG/NET/pspnet_adhoc_ssid_prefix.

SCE_REGMGR_SYSTEM_PARAM_ID_KEY_PAD 

/CONFIG/SYSTEM/key_pad.

SCE_REGMGR_SYSTEM_PARAM_ID_MUSIC_IMPOSE_AUDIO_BALANCE 

/CONFIG/MUSIC/MUSIC_APP/impose_audio_balance.

SCE_REGMGR_SYSTEM_PARAM_ID_GAME_SHOW_DEBUG_INFO 

/CONFIG/GAME/show_debug_info.

SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_SDSLOT_BROKEN 

/CONFIG/GAME/fake_sdslot_broken.

SCE_REGMGR_SYSTEM_PARAM_ID_SPECIFIC_IDU_MODE 

/CONFIG/SPECIFIC/idu_mode.

SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_FREE_SPACE 

/CONFIG/GAME/fake_free_space.

SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_FREE_SPACE_QUOTA 

/CONFIG/GAME/fake_free_space_quota.

SCE_REGMGR_SYSTEM_PARAM_ID_TWITTER_ACCESS_TOKEN 

/CONFIG/NP2/TWITTER/access_token; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_TWITTER_ACCESS_TOKEN_SECRET 

/CONFIG/NP2/TWITTER/access_token_secret; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_PSM_REVOCATION_CHECK_REQ 

/CONFIG/PSM/revocation_check_req.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_FAKE_PLUS 

/CONFIG/NP2/fake_plus.

SCE_REGMGR_SYSTEM_PARAM_ID_SHELL_VOICE_PRIORITY 

/CONFIG/SHELL/voice_priority.

SCE_REGMGR_SYSTEM_PARAM_ID_NET_SSL_CERT_IGNORABLE 

/CONFIG/NET/ssl_cert_ignorable.

SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_WOL_TARGET_MAC_ADDRESS 

/CONFIG/NP2/TELEPORT/wol_target_mac_address; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_TARGET_NAME 

/CONFIG/NP2/TELEPORT/target_name; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_INITIAL_TARGET 

/CONFIG/NP2/TELEPORT/initial_target; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_PASSCODE_CLIENT 

/CONFIG/NP2/TELEPORT/passcode_client; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_TELEPORT_ENABLE_MEDIA_TRANSFER 

/CONFIG/NP2/TELEPORT/enable_media_transfer.

SCE_REGMGR_SYSTEM_PARAM_ID_DISPLAY_HDMI_OUT_SCALING_RATIO 

/CONFIG/DISPLAY/hdmi_out_scaling_ratio.

SCE_REGMGR_SYSTEM_PARAM_ID_PS4LINK_COUNTER 

/CONFIG/PS4LINK/counter; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_PS4LINK_KEYS 

/CONFIG/PS4LINK/keys; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_NO_MEMORY_CARD 

/CONFIG/GAME/fake_no_memory_card.

SCE_REGMGR_SYSTEM_PARAM_ID_GAME_FAKE_CONTENTS_MAX 

/CONFIG/GAME/fake_contents_max.

SCE_REGMGR_SYSTEM_PARAM_ID_PARENTAL_STORE_START_CONTROL 

/CONFIG/SECURITY/PARENTAL/store_start_control.

SCE_REGMGR_SYSTEM_PARAM_ID_DATE_IS_SUMMER_TIME 

/CONFIG/DATE/is_summer_time.

SCE_REGMGR_SYSTEM_PARAM_ID_PSNOW_APP_CACHED_URL 

/CONFIG/PSNOW/app_cached_url.

SCE_REGMGR_SYSTEM_PARAM_ID_BROWSER_DEBUG_NET_DBG_CONFIG 

/CONFIG/BROWSER/DEBUG/net_dbg_config; writable.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_FAKE_RATELIMIT 

/CONFIG/NP2/fake_ratelimit.

SCE_REGMGR_SYSTEM_PARAM_ID_NP2_IGNORE_TITLEID 

/CONFIG/NP2/ignore_titleid.

SCE_REGMGR_SYSTEM_PARAM_ID_ACCESSIBILITY_LARGE_TEXT 

/CONFIG/ACCESSIBILITY/large_text.

SCE_REGMGR_SYSTEM_PARAM_ID_ACCESSIBILITY_BOLD_TEXT 

/CONFIG/ACCESSIBILITY/bold_text.

SCE_REGMGR_SYSTEM_PARAM_ID_ACCESSIBILITY_CONTRAST 

/CONFIG/ACCESSIBILITY/contrast.

SCE_REGMGR_SYSTEM_PARAM_ID_PARENTAL_CONTENT_START_CONTROL 

/CONFIG/SECURITY/PARENTAL/content_start_control.

Function Documentation

◆ sceRegMgrGetKeyBin()

int sceRegMgrGetKeyBin ( const char *  category,
const char *  name,
void *  buf,
int  size 
)

Get a key's information by category and name.

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
name- Name of the key
buf- Pointer to a buffer to hold the value
size- The size of the buffer
Returns
0 on success, < 0 on error

◆ sceRegMgrGetKeyInt()

int sceRegMgrGetKeyInt ( const char *  category,
const char *  name,
int *  buf 
)

Get a key's information by category and name.

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
name- Name of the key
buf- Pointer to a int buffer to hold the value
Returns
0 on success, < 0 on error

◆ sceRegMgrGetKeyStr()

int sceRegMgrGetKeyStr ( const char *  category,
const char *  name,
char *  buf,
const int  size 
)

Get a key's information by category and name.

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
name- Name of the key
buf- Pointer to a char buffer to hold the value
size- The size of the buffer
Returns
0 on success, < 0 on error

◆ sceRegMgrSetKeyBin()

int sceRegMgrSetKeyBin ( const char *  category,
const char *  name,
void *  buf,
int  size 
)

Set a key's information by category and name.

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
name- Name of the key
buf- Pointer to a buffer to hold the value
size- The size of the buffer
Returns
0 on success, < 0 on error

◆ sceRegMgrSetKeyInt()

int sceRegMgrSetKeyInt ( const char *  category,
const char *  name,
int  buf 
)

Set a key's information by category and name.

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
name- Name of the key
buf- Pointer to an int buffer to hold the value
Returns
0 on success, < 0 on error

◆ sceRegMgrSetKeyStr()

int sceRegMgrSetKeyStr ( const char *  category,
const char *  name,
char *  buf,
const int  size 
)

Set a key's information by category and name.

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
name- Name of the key
buf- Pointer to a char buffer to hold the value
size- The size of the buffer
Returns
0 on success, < 0 on error

◆ sceRegMgrGetInitVals()

int sceRegMgrGetInitVals ( const char *  category,
char *  buf,
const int  elements_number 
)

Get all keys' initial information by category (from os0:kd/registry.db0)

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
buf[out]- Pointer to a char buffer to hold the values
elements_number- The number of elements of the buffer
Returns
0 on success, < 0 on error

◆ sceRegMgrGetKeys()

int sceRegMgrGetKeys ( const char *  category,
char *  buf,
const int  elements_number 
)

Get all keys' information by category.

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
buf[out]- Pointer to a char buffer to hold the values
elements_number- The number of elements of the buffer
Returns
0 on success, < 0 on error

◆ sceRegMgrSetKeys()

int sceRegMgrSetKeys ( const char *  category,
char *  buf,
const int  elements_number 
)

Set all keys' information by category.

Parameters
category- The path to the directory to be opened (e.g. /CONFIG/SYSTEM)
buf[out]- Pointer to a char buffer that holds the values
elements_number- The number of elements of the buffer
Returns
0 on success, < 0 on error

◆ sceRegMgrSystemParamGetInt()

int sceRegMgrSystemParamGetInt ( const int  id,
int *  buf 
)

Get a system param key's information by id.

Parameters
id- A SceRegMgrSystemParam ID.
buf[out]- Pointer to an int to hold the value
Returns
0 on success, < 0 on error

◆ sceRegMgrSystemParamGetStr()

int sceRegMgrSystemParamGetStr ( const int  id,
char *  buf,
const int  size 
)

Get a system param key's information by id.

Parameters
id- A SceRegMgrSystemParam ID.
buf[out]- Pointer to a char buffer to hold the value
size- The size of the buffer
Returns
0 on success, < 0 on error

◆ sceRegMgrGetRegVersion()

int sceRegMgrGetRegVersion ( int  version,
char *  buf 
)

Get the registry version.

Returns
The packed registry version value on FW 3.60.

◆ sceRegMgrSystemParamGetBin()

SceInt32 sceRegMgrSystemParamGetBin ( SceRegMgrSystemParam  id,
void *  buf,
SceSize  buf_size 
)

Gets a system parameter as binary data.

FW 3.60 looks up id in its fixed SceRegMgrSystemParam table and copies exactly min(buf_size, 0x800) bytes to buf on success. The buffer is not used after this function returns. An unknown ID or a NULL buffer returns 0x800D0004.

Parameters
[in]id- System-parameter ID.
[out]buf- Destination buffer.
[in]buf_size- Requested byte count.
Returns
0 on success, or a negative error code.

◆ sceRegMgrSystemParamSetBin()

SceInt32 sceRegMgrSystemParamSetBin ( SceRegMgrSystemParam  id,
const void *  buf,
SceSize  buf_size 
)

Sets a writable system parameter from binary data.

FW 3.60 requires a non-NULL buffer and buf_size no greater than 0x7C0. It copies exactly buf_size bytes to kernel memory before returning and does not use the buffer afterwards. The selected registry key must have binary type. Unknown IDs return 0x800D0004 and known read-only IDs return 0x800D0015.

Parameters
[in]id- Writable system-parameter ID.
[in]buf- Source bytes.
[in]buf_size- Number of bytes to copy and store.
Returns
0 on success, or a negative error code.

◆ sceRegMgrSystemParamSetInt()

SceInt32 sceRegMgrSystemParamSetInt ( SceRegMgrSystemParam  id,
SceInt32  value 
)

Sets a writable 32-bit integer system parameter.

Unknown IDs return 0x800D0004 and known read-only IDs return 0x800D0015.

Parameters
[in]id- Writable system-parameter ID whose registry key is an integer.
[in]value- Value to store.
Returns
0 on success, or a negative error code.

◆ sceRegMgrSystemParamSetStr()

SceInt32 sceRegMgrSystemParamSetStr ( SceRegMgrSystemParam  id,
const char *  buf,
SceSize  buf_size 
)

Sets a writable string system parameter.

FW 3.60 requires a non-NULL buffer and buf_size no greater than 0x7C0. It copies exactly buf_size bytes without adding or checking for a NUL terminator. Include the terminator when the selected key requires it. The buffer is not used after this function returns. Unknown IDs return 0x800D0004 and known read-only IDs return 0x800D0015.

Parameters
[in]id- Writable system-parameter ID whose registry key is a string.
[in]buf- Characters to copy.
[in]buf_size- Number of bytes to copy and store.
Returns
0 on success, or a negative error code.