plugin loader: allow loading user defined plugin for any title (#2026)

This commit is contained in:
PabloMK7 2024-05-09 19:59:03 +02:00 committed by GitHub
parent df1f9dbfc2
commit 175e184089
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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$