25#define SYSTEM_REGISTRY "/system"
28#define REG_KEYNAME_SIZE 27
unsigned int REGHANDLE
Typedef for a registry handle.
Definition pspreg.h:44
int sceRegGetKeyInfoByName(REGHANDLE hd, const char *name, unsigned int *type, SceSize *size)
Get a key's information by name.
int sceRegGetKeyInfo(REGHANDLE hd, const char *name, REGHANDLE *hk, unsigned int *type, SceSize *size)
Get a key's information.
int sceRegFlushCategory(REGHANDLE hd)
Flush the registry directory to disk.
int sceRegGetKeyValue(REGHANDLE hd, REGHANDLE hk, void *buf, SceSize size)
Get a key's value.
int sceRegFlushRegistry(REGHANDLE h)
Flush the registry to disk.
int sceRegSetKeyValue(REGHANDLE hd, const char *name, const void *buf, SceSize size)
Set a key's value.
int sceRegCloseRegistry(REGHANDLE h)
Close the registry.
int sceRegGetKeysNum(REGHANDLE hd, int *num)
Get number of subkeys in the current dir.
int sceRegGetKeyValueByName(REGHANDLE hd, const char *name, void *buf, SceSize size)
Get a key's value by name.
int sceRegRemoveCategory(REGHANDLE h, const char *name)
Remove a registry dir.
int sceRegGetKeys(REGHANDLE hd, char *buf, int num)
Get the key names in the current directory.
int sceRegOpenRegistry(struct RegParam *reg, int mode, REGHANDLE *h)
Open the registry.
int sceRegCreateKey(REGHANDLE hd, const char *name, int type, SceSize size)
Create a key.
int sceRegRemoveRegistry(struct RegParam *reg)
Remove a registry (HONESTLY, DO NOT USE)
int sceRegOpenCategory(REGHANDLE h, const char *name, int mode, REGHANDLE *hd)
Open a registry directory.
RegKeyTypes
Key types.
Definition pspreg.h:32
int sceRegCloseCategory(REGHANDLE hd)
Close the registry directory.
@ REG_TYPE_INT
Key is an integer (4 bytes)
Definition pspreg.h:36
@ REG_TYPE_STR
Key is a string.
Definition pspreg.h:38
@ REG_TYPE_BIN
Key is a binary string.
Definition pspreg.h:40
@ REG_TYPE_DIR
Key is a directory.
Definition pspreg.h:34
unsigned int SceSize
Definition psptypes.h:103
Struct used to open a registry.
Definition pspreg.h:48
char name[256]
Seemingly never used, set to SYSTEM_REGISTRY.
Definition pspreg.h:51
unsigned int unk2
Unknown, set to 1.
Definition pspreg.h:55
unsigned int regtype
Definition pspreg.h:49
unsigned int unk3
Unknown, set to 1.
Definition pspreg.h:57
unsigned int namelen
Length of the name.
Definition pspreg.h:53