diff --git a/ElevenMPV-A/CONTENTS/module/exit_module.suprx b/ElevenMPV-A/CONTENTS/module/exit_module.suprx deleted file mode 100644 index b42dbd6..0000000 Binary files a/ElevenMPV-A/CONTENTS/module/exit_module.suprx and /dev/null differ diff --git a/ElevenMPV-A/include/utils.h b/ElevenMPV-A/include/utils.h index dbcb9cc..9aaaf36 100644 --- a/ElevenMPV-A/include/utils.h +++ b/ElevenMPV-A/include/utils.h @@ -38,6 +38,8 @@ extern "C" { int sceAppMgrAcquireBgmPortWithPriority(SceUInt32 priority); int sceShellUtilExitToLiveBoard(); + + SceUID _vshKernelSearchModuleByName(const char *name, SceUInt64 *unk); } static const SceUInt32 k_supportedExtNum = 15; diff --git a/ElevenMPV-A/source/menus/menu_audioplayer.cpp b/ElevenMPV-A/source/menus/menu_audioplayer.cpp index 1ad1ee1..9d2dc85 100644 --- a/ElevenMPV-A/source/menus/menu_audioplayer.cpp +++ b/ElevenMPV-A/source/menus/menu_audioplayer.cpp @@ -201,11 +201,11 @@ SceVoid menu::audioplayer::Audioplayer::RegularTask(ScePVoid pUserData) config::Config::EMPVAConfig *config = g_config->GetConfigLocation(); // Set progressbar value + currentPos = currentDecoder->GetPosition(); if (!sceKernelPollEventFlag(g_eventFlagUid, FLAG_ELEVENMPVA_IS_FG, SCE_KERNEL_EVF_WAITMODE_AND, SCE_NULL)) { searchParam.hash = EMPVAUtils::GetHash("progressbar_player"); widget::ProgressBarTouch *playerProgBar = (widget::ProgressBarTouch *)g_player_page->GetChildByHash(&searchParam, 0); - currentPos = currentDecoder->GetPosition(); length = currentDecoder->GetLength(); currentPosSec = (SceUInt64)((SceFloat32)currentPos / (SceFloat32)currentDecoder->GetSampleRate()); @@ -253,7 +253,7 @@ SceVoid menu::audioplayer::Audioplayer::RegularTask(ScePVoid pUserData) HandleNext(SCE_FALSE, SCE_FALSE); return; } - int ret = 0; + // Check Shell IPC if (!EMPVAUtils::IsSleep()) { ipcCom = EMPVAUtils::IPC::PeekTx(); diff --git a/ElevenMPV-A/source/utils.cpp b/ElevenMPV-A/source/utils.cpp index eff9944..6946a65 100644 --- a/ElevenMPV-A/source/utils.cpp +++ b/ElevenMPV-A/source/utils.cpp @@ -213,7 +213,7 @@ SceVoid EMPVAUtils::AppWatchdogTask(ScePVoid pUserData) sceMusicPlayerServiceSendEvent(SCE_MUSICCORE_EVENTID_STOP, 0); sceMusicPlayerServiceTerminate(); } - + EMPVAUtils::Exit(); break; @@ -253,15 +253,11 @@ SceVoid EMPVAUtils::Init() SceVoid EMPVAUtils::Exit() { SceInt32 ret; - char pluginPath[256]; if (s_shellPluginUID > 0) taiStopUnloadModuleForPid(s_shellPid, s_shellPluginUID, 0, SCE_NULL, 0, SCE_NULL, &ret); - sce_paf_snprintf(pluginPath, 256, "%s%s%s", "ux0:app/", s_titleid, "/module/exit_module.suprx"); - SceUID modid = taiLoadStartKernelModule(pluginPath, 0, SCE_NULL, 0); - sceAppMgrQuitForNonSuspendableApp(); - taiStopUnloadKernelModule(modid, 0, SCE_NULL, 0, SCE_NULL, SCE_NULL); + sceKernelExitProcess(0); } SceVoid EMPVAUtils::Activate()