mirror of
https://github.com/LumaTeam/Luma3DS.git
synced 2026-02-22 01:44:38 +00:00
plugin loader: allow loading user defined plugin for any title (#2026)
This commit is contained in:
parent
df1f9dbfc2
commit
175e184089
@ -168,7 +168,7 @@ bool TryToLoadPlugin(Handle process)
|
|||||||
pluginHeader->magic = HeaderMagic;
|
pluginHeader->magic = HeaderMagic;
|
||||||
|
|
||||||
// Try to open plugin file
|
// Try to open plugin file
|
||||||
if (ctx->useUserLoadParameters && (u32)tid == ctx->userLoadParameters.lowTitleId)
|
if (ctx->useUserLoadParameters && (ctx->userLoadParameters.lowTitleId == 0 || (u32)tid == ctx->userLoadParameters.lowTitleId))
|
||||||
{
|
{
|
||||||
ctx->useUserLoadParameters = false;
|
ctx->useUserLoadParameters = false;
|
||||||
ctx->pluginMemoryStrategy = ctx->userLoadParameters.pluginMemoryStrategy;
|
ctx->pluginMemoryStrategy = ctx->userLoadParameters.pluginMemoryStrategy;
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
#include "sleep.h"
|
#include "sleep.h"
|
||||||
#include "task_runner.h"
|
#include "task_runner.h"
|
||||||
|
|
||||||
#define PLGLDR_VERSION (SYSTEM_VERSION(1, 0, 1))
|
#define PLGLDR_VERSION (SYSTEM_VERSION(1, 0, 2))
|
||||||
|
|
||||||
#define THREADVARS_MAGIC 0x21545624 // !TV$
|
#define THREADVARS_MAGIC 0x21545624 // !TV$
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user