23#define SYSTEM_REGISTRY "/system"
26#define REG_KEYNAME_SIZE 27
unsigned int REGHANDLE
Typedef for a registry handle.
Definition pspreg.h:42
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:30
int sceRegCloseCategory(REGHANDLE hd)
Close the registry directory.
@ REG_TYPE_INT
Key is an integer (4 bytes)
Definition pspreg.h:34
@ REG_TYPE_STR
Key is a string.
Definition pspreg.h:36
@ REG_TYPE_BIN
Key is a binary string.
Definition pspreg.h:38
@ REG_TYPE_DIR
Key is a directory.
Definition pspreg.h:32
unsigned int SceSize
Definition pspkerneltypes.h:27
char * name
Definition pspsysmem_kernel.h:4
unsigned char size
Definition pspsysmem_kernel.h:6
struct _uidControlBlock * type
Definition pspsysmem_kernel.h:2
float x
Definition psptypes.h:0
Struct used to open a registry.
Definition pspreg.h:46
char name[256]
Seemingly never used, set to SYSTEM_REGISTRY.
Definition pspreg.h:49
unsigned int unk2
Unknown, set to 1.
Definition pspreg.h:53
unsigned int regtype
Definition pspreg.h:47
unsigned int unk3
Unknown, set to 1.
Definition pspreg.h:55
unsigned int namelen
Length of the name.
Definition pspreg.h:51