mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 19:23:47 +01:00
Apply proper names to some more HLE functions
This commit is contained in:
1 parent
c989c2553e
commit
11b4509158
8 files changed
+17
-18
No files matched your search
@@ -1676,9 +1676,7 @@ static u32 SysMemUserForUser_D8DE5C1E() {
|
||||
}
|
||||
|
||||
// Real name per uofw's src/kd/sysmem/exports.exp: sceKernelTotalMemSize - the total size (not
|
||||
// free size, see sceKernelMaxFreeMemSize above) of the user memory partition. Was previously
|
||||
// an unconditional `return 0` - real callers doing size-based decisions (e.g. "is there enough
|
||||
// memory to enable feature X") would see 0 total memory instead of a real, sane value.
|
||||
// free size, see sceKernelMaxFreeMemSize above) of the user memory partition.
|
||||
static u32 sceKernelTotalMemSize() {
|
||||
return hleLogDebug(Log::sceKernel, PSP_GetUserMemoryEnd() - PSP_GetUserMemoryBase());
|
||||
}
|
||||
@@ -2116,7 +2114,7 @@ const HLEFunction SysMemUserForUser[] = {
|
||||
{0X358CA1BB, &WrapI_I<sceKernelSetCompiledSdkVersion606>, "sceKernelSetCompiledSdkVersion606", 'i', "i" },
|
||||
{0XFC114573, &WrapI_V<sceKernelGetCompiledSdkVersion>, "sceKernelGetCompiledSdkVersion", 'i', "" },
|
||||
{0X2A3E5280, nullptr, "sceKernelQueryMemoryInfo", '?', "" },
|
||||
{0XACBD88CA, &WrapU_V<sceKernelTotalMemSize>, "sceKernelTotalMemSize", 'x', "" },
|
||||
{0XACBD88CA, &WrapU_V<sceKernelTotalMemSize>, "sceKernelTotalMemSize", 'x', "" },
|
||||
{0X945E45DA, &WrapU_V<SysMemUserForUser_945E45DA>, "SysMemUserForUser_945E45DA", 'x', "" },
|
||||
{0XA6848DF8, nullptr, "sceKernelSetUsersystemLibWork", '?', "" },
|
||||
{0X6231A71D, nullptr, "sceKernelSetPTRIG", '?', "" },
|
||||
|
||||
Reference in new issue
Block a user