mirror of
https://github.com/LumaTeam/Luma3DS.git
synced 2026-02-22 01:44:38 +00:00
plgloader: Code cleanup
This commit is contained in:
parent
db639a80c9
commit
c04c7254ed
@ -20,9 +20,6 @@ static const char *g_title = "Plugin loader";
|
||||
PluginLoaderContext PluginLoaderCtx;
|
||||
extern u32 g_blockMenuOpen;
|
||||
|
||||
void IR__Patch(void);
|
||||
void IR__Unpatch(void);
|
||||
|
||||
void PluginLoader__Init(void)
|
||||
{
|
||||
PluginLoaderContext *ctx = &PluginLoaderCtx;
|
||||
@ -96,7 +93,7 @@ void PluginLoader__UpdateMenu(void)
|
||||
static ControlApplicationMemoryModeOverrideConfig g_memorymodeoverridebackup = { 0 };
|
||||
Result PluginLoader__SetMode3AppMode(bool enable)
|
||||
{
|
||||
Handle loaderHandle;
|
||||
Handle loaderHandle;
|
||||
Result res = srvGetServiceHandle(&loaderHandle, "Loader");
|
||||
|
||||
if (R_FAILED(res)) return res;
|
||||
@ -131,15 +128,11 @@ Result PluginLoader__SetMode3AppMode(bool enable)
|
||||
}
|
||||
}
|
||||
|
||||
svcCloseHandle(loaderHandle);
|
||||
svcCloseHandle(loaderHandle);
|
||||
return res;
|
||||
}
|
||||
static void j_PluginLoader__SetMode3AppMode(void* arg) {(void)arg; PluginLoader__SetMode3AppMode(false);}
|
||||
|
||||
void CheckMemory(void);
|
||||
|
||||
void PLG__NotifyEvent(PLG_Event event, bool signal);
|
||||
|
||||
void PluginLoader__HandleCommands(void *_ctx)
|
||||
{
|
||||
(void)_ctx;
|
||||
@ -176,8 +169,6 @@ void PluginLoader__HandleCommands(void *_ctx)
|
||||
}
|
||||
REG32(0x10202204) = 0;
|
||||
}
|
||||
//if (!ctx->userLoadParameters.noIRPatch)
|
||||
// IR__Patch();
|
||||
PLG__SetConfigMemoryStatus(PLG_CFG_RUNNING);
|
||||
}
|
||||
else
|
||||
@ -561,8 +552,6 @@ static void WaitForProcessTerminated(void *arg)
|
||||
ctx->isMemPrivate = false;
|
||||
g_blockMenuOpen = 0;
|
||||
MemoryBlock__ResetSwapSettings();
|
||||
//if (!ctx->userLoadParameters.noIRPatch)
|
||||
// IR__Unpatch();
|
||||
}
|
||||
|
||||
void PluginLoader__HandleKernelEvent(u32 notifId)
|
||||
@ -648,7 +637,6 @@ void PluginLoader__HandleKernelEvent(u32 notifId)
|
||||
}
|
||||
ctx->pluginIsHome = !ctx->pluginIsHome;
|
||||
}
|
||||
|
||||
}
|
||||
srvPublishToSubscriber(0x1002, 0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user