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;
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user