Skip to content

Commit

Permalink
Update SceSysroot nids/functions (#495)
Browse files Browse the repository at this point in the history
* Update SceSysroot nids

* Update SceSysroot functions

* Update ksceSysrootIsNonRemovableCardMode document
  • Loading branch information
Princess-of-Sleeping authored Oct 31, 2020
1 parent 3e1933b commit f7de8e2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
6 changes: 4 additions & 2 deletions db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9427,6 +9427,8 @@ modules:
ksceKernelSysrootSetProcessHandler: 0x0F07C3FC
ksceKernelSysrootSetSystemSwVersion: 0x3276086B
ksceSysrootGetHardwareInfo: 0x930B1342
ksceSysrootUseExternalStorage: 0x55392965
ksceSysrootUseInternalStorage: 0x50FE3B4D
ksceSysrootUtMgrHasNpTestFlag: 0xA43599E9
ksceSysrootUtMgrSetNpTestFlag: 0xEE5D6CE9
SceSysrootForKernel:
Expand Down Expand Up @@ -9466,12 +9468,12 @@ modules:
ksceSysrootIsAuCodecIcConexant: 0x46E72428
ksceSysrootIsBsodReboot: 0x4373AC96
ksceSysrootIsExternalBootMode: 0x89D19090
ksceSysrootIsManufacturingMode: 0x55392965
ksceSysrootIsNonRemovableCardMode: 0x50FE3B4D
ksceSysrootIsSafeMode: 0x834439A7
ksceSysrootIsUpdateMode: 0xB0E1FC67
ksceSysrootIsUsbEnumWakeup: 0x79C9AE10
ksceSysrootRegisterLicMgrGetLicenseStatus: 0x71DB83A2
ksceSysrootUseExternalStorage: 0x55392965
ksceSysrootUseInternalStorage: 0x50FE3B4D
SceUartForKernel:
kernel: true
nid: 0xC03DBE40
Expand Down
34 changes: 32 additions & 2 deletions include/psp2kern/kernel/sysroot.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,42 @@ int ksceKernelSysrootGetProcessTitleId(SceUID pid, char *titleid, SceSize len);

int ksceSysrootGetSelfInfo(SceKernelSysrootSelfIndex index, SceKernelSysrootSelfInfo *info);

/**
* Get UseExternalStorage status.
*
* Returns 1 if an external device(sdcard) is available.
*
* @return 0 or 1.
*/
int ksceSysrootUseExternalStorage(void);

#define ksceSysrootIsManufacturingMode() ksceSysrootUseExternalStorage()

/**
* Get UseInternalStorage status.
*
* Returns 1 if using an internal device(pre-memcard).
*
* @return 0 or 1.
*/
int ksceSysrootUseInternalStorage(void);

/**
* Get ManufacturingMode status.
*
* Returns 1 if the device is in manufacturing mode.
*
* @return 0 or 1.
*/
int ksceSysrootIsManufacturingMode(void);

/**
* Get NonRemovableCardMode status.
*
* Returns 1 if using an non removable card(pre-memcard).
*
* @return 0 or 1.
*/
int ksceSysrootIsNonRemovableCardMode(void);

typedef struct SceSysrootProcessHandler {
SceSize size; //!< sizeof(SceSysrootProcessHandler)
void (* unk_4)(SceUID pid, SceUID modid, int flags, uint64_t time); //!< process start shared modules
Expand Down

0 comments on commit f7de8e2

Please sign in to comment.