plgloader: Code cleanup

This commit is contained in:
fangrong 2025-12-13 15:58:44 +08:00 committed by TuxSH
parent db639a80c9
commit c04c7254ed

View File

@ -20,9 +20,6 @@ static const char *g_title = "Plugin loader";
PluginLoaderContext PluginLoaderCtx; PluginLoaderContext PluginLoaderCtx;
extern u32 g_blockMenuOpen; extern u32 g_blockMenuOpen;
void IR__Patch(void);
void IR__Unpatch(void);
void PluginLoader__Init(void) void PluginLoader__Init(void)
{ {
PluginLoaderContext *ctx = &PluginLoaderCtx; PluginLoaderContext *ctx = &PluginLoaderCtx;
@ -136,10 +133,6 @@ Result PluginLoader__SetMode3AppMode(bool enable)
} }
static void j_PluginLoader__SetMode3AppMode(void* arg) {(void)arg; PluginLoader__SetMode3AppMode(false);} 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 PluginLoader__HandleCommands(void *_ctx)
{ {
(void)_ctx; (void)_ctx;
@ -176,8 +169,6 @@ void PluginLoader__HandleCommands(void *_ctx)
} }
REG32(0x10202204) = 0; REG32(0x10202204) = 0;
} }
//if (!ctx->userLoadParameters.noIRPatch)
// IR__Patch();
PLG__SetConfigMemoryStatus(PLG_CFG_RUNNING); PLG__SetConfigMemoryStatus(PLG_CFG_RUNNING);
} }
else else
@ -561,8 +552,6 @@ static void WaitForProcessTerminated(void *arg)
ctx->isMemPrivate = false; ctx->isMemPrivate = false;
g_blockMenuOpen = 0; g_blockMenuOpen = 0;
MemoryBlock__ResetSwapSettings(); MemoryBlock__ResetSwapSettings();
//if (!ctx->userLoadParameters.noIRPatch)
// IR__Unpatch();
} }
void PluginLoader__HandleKernelEvent(u32 notifId) void PluginLoader__HandleKernelEvent(u32 notifId)
@ -648,7 +637,6 @@ void PluginLoader__HandleKernelEvent(u32 notifId)
} }
ctx->pluginIsHome = !ctx->pluginIsHome; ctx->pluginIsHome = !ctx->pluginIsHome;
} }
} }
srvPublishToSubscriber(0x1002, 0); srvPublishToSubscriber(0x1002, 0);
} }