From cc7366e63ca536260962d3217f863f814a757d73 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 18 Oct 2021 06:50:18 -0700 Subject: [PATCH] HLE: Add a few syscall names. --- Core/HLE/sceAudiocodec.cpp | 2 +- Core/HLE/sceKernel.cpp | 4 ++-- Core/HLE/sceMpeg.cpp | 8 ++++---- Core/HLE/scePower.cpp | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Core/HLE/sceAudiocodec.cpp b/Core/HLE/sceAudiocodec.cpp index 21d643e1fc..ed4dc42aa3 100644 --- a/Core/HLE/sceAudiocodec.cpp +++ b/Core/HLE/sceAudiocodec.cpp @@ -156,7 +156,7 @@ const HLEFunction sceAudiocodec[] = { {0X3A20A200, &WrapI_UI, "sceAudiocodecGetEDRAM", 'i', "xi"}, {0X29681260, &WrapI_UI, "sceAudiocodecReleaseEDRAM", 'i', "xi"}, {0X9D3F790C, &WrapI_UI, "sceAudiocodecCheckNeedMem", 'i', "xi"}, - {0X59176A0F, nullptr, "sceAudiocodec_59176A0F", '?', "" }, + {0X59176A0F, nullptr, "sceAudiocodecAlcExtendParameter", '?', "" }, }; void Register_sceAudiocodec() diff --git a/Core/HLE/sceKernel.cpp b/Core/HLE/sceKernel.cpp index d4b4619878..3e970aa1a9 100644 --- a/Core/HLE/sceKernel.cpp +++ b/Core/HLE/sceKernel.cpp @@ -965,8 +965,8 @@ void Register_LoadExecForUser() const HLEFunction LoadExecForKernel[] = { {0x4AC57943, &WrapI_I, "sceKernelRegisterExitCallback", 'i', "i", HLE_KERNEL_SYSCALL }, - {0XA3D5E142, nullptr, "LoadExecForKernel_a3d5e142", '?', "" }, - {0X28D0D249, &WrapI_CU, "sceKernelLoadExec_28D0D249", 'i', "sx" }, + {0XA3D5E142, nullptr, "sceKernelExitVSHVSH", '?', "" }, + {0X28D0D249, &WrapI_CU, "sceKernelLoadExecVSHMs2", 'i', "sx" }, {0x6D302D3D, &WrapV_V, "sceKernelExitVSHKernel", 'v', "x", HLE_KERNEL_SYSCALL },// when called in game mode it will have the same effect that sceKernelExitGame }; diff --git a/Core/HLE/sceMpeg.cpp b/Core/HLE/sceMpeg.cpp index fe3da314ea..84be05710b 100644 --- a/Core/HLE/sceMpeg.cpp +++ b/Core/HLE/sceMpeg.cpp @@ -96,7 +96,7 @@ static const int MPEG_HEADER_BUFFER_MINIMUM_SIZE = 2048; // For PMP media static u32 pmp_videoSource = 0; //pointer to the video source (SceMpegLLi structure) -static int pmp_nBlocks = 0; //number of blocks received in the last sceMpegbase_BEA18F91 call +static int pmp_nBlocks = 0; //number of blocks received in the last sceMpegBasePESpacketCopy call static std::list pmp_queue; //list of pmp video frames have been decoded and will be played static std::list pmp_ContextList; //list of pmp media contexts static bool pmp_oldStateLoaded = false; // for dostate @@ -2405,7 +2405,7 @@ void Register_sceMpeg() // This function is currently only been used for PMP videos // p pointing to a SceMpegLLI structure consists of video frame blocks. -static u32 sceMpegbase_BEA18F91(u32 p) +static u32 sceMpegBasePESpacketCopy(u32 p) { pmp_videoSource = p; pmp_nBlocks = 0; @@ -2420,13 +2420,13 @@ static u32 sceMpegbase_BEA18F91(u32 p) p = p + sizeof(SceMpegLLI); } - DEBUG_LOG(ME, "sceMpegbase_BEA18F91(%08x), received %d block(s)", pmp_videoSource, pmp_nBlocks); + DEBUG_LOG(ME, "sceMpegBasePESpacketCopy(%08x), received %d block(s)", pmp_videoSource, pmp_nBlocks); return 0; } const HLEFunction sceMpegbase[] = { - {0XBEA18F91, &WrapU_U, "sceMpegbase_BEA18F91", 'x', "x" }, + {0XBEA18F91, &WrapU_U, "sceMpegBasePESpacketCopy", 'x', "x" }, {0X492B5E4B, nullptr, "sceMpegBaseCscInit", '?', "" }, {0X0530BE4E, nullptr, "sceMpegbase_0530BE4E", '?', "" }, {0X91929A21, nullptr, "sceMpegBaseCscAvc", '?', "" }, diff --git a/Core/HLE/scePower.cpp b/Core/HLE/scePower.cpp index 1fea3b6c51..2fd7259e70 100644 --- a/Core/HLE/scePower.cpp +++ b/Core/HLE/scePower.cpp @@ -563,7 +563,7 @@ static const HLEFunction scePower[] = { {0X7F30B3B1, nullptr, "scePowerIdleTimerEnable", '?', "" }, {0X972CE941, nullptr, "scePowerIdleTimerDisable", '?', "" }, {0X27F3292C, nullptr, "scePowerBatteryUpdateInfo", '?', "" }, - {0XE8E4E204, nullptr, "scePower_E8E4E204", '?', "" }, + {0XE8E4E204, nullptr, "scePowerGetForceSuspendCapacity", '?', "" }, {0XB999184C, nullptr, "scePowerGetLowBatteryCapacity", '?', "" }, {0X87440F5E, &WrapI_V, "scePowerIsPowerOnline", 'i', "" }, {0X0AFD0D8B, &WrapI_V, "scePowerIsBatteryExist", 'i', "" }, @@ -603,7 +603,7 @@ static const HLEFunction scePower[] = { {0X737486F2, &WrapU_UUU, "scePowerSetClockFrequency", 'x', "xxx"}, {0X34F9C463, &WrapU_V, "scePowerGetPllClockFrequencyInt", 'x', "" }, {0XEA382A27, &WrapF_V, "scePowerGetPllClockFrequencyFloat", 'f', "" }, - {0XEBD177D6, &WrapU_UUU, "scePower_EBD177D6", 'x', "xxx"}, // This is also the same as SetClockFrequency + {0XEBD177D6, &WrapU_UUU, "scePowerSetClockFrequency350", 'x', "xxx"}, // This is also the same as SetClockFrequency {0X469989AD, &WrapU_UUU, "scePower_469989ad", 'x', "xxx"}, // This is also the same as SetClockFrequency {0X545A7F3C, nullptr, "scePower_545A7F3C", '?', "" }, // TODO: Supposedly the same as SetClockFrequency also? {0XA4E93389, nullptr, "scePower_A4E93389", '?', "" }, // TODO: Supposedly the same as SetClockFrequency also?