mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-23 05:59:52 +00:00
Make plugins only load for apps and not applets (#265)
Some checks failed
citra-build / source (push) Has been cancelled
citra-build / linux (appimage) (push) Has been cancelled
citra-build / linux (fresh) (push) Has been cancelled
citra-build / macos (arm64) (push) Has been cancelled
citra-build / macos (x86_64) (push) Has been cancelled
citra-build / windows (msvc) (push) Has been cancelled
citra-build / windows (msys2) (push) Has been cancelled
citra-build / android (push) Has been cancelled
citra-build / ios (push) Has been cancelled
citra-format / clang-format (push) Has been cancelled
citra-transifex / transifex (push) Has been cancelled
citra-build / macos-universal (push) Has been cancelled
citra-build / release (push) Has been cancelled
Some checks failed
citra-build / source (push) Has been cancelled
citra-build / linux (appimage) (push) Has been cancelled
citra-build / linux (fresh) (push) Has been cancelled
citra-build / macos (arm64) (push) Has been cancelled
citra-build / macos (x86_64) (push) Has been cancelled
citra-build / windows (msvc) (push) Has been cancelled
citra-build / windows (msys2) (push) Has been cancelled
citra-build / android (push) Has been cancelled
citra-build / ios (push) Has been cancelled
citra-format / clang-format (push) Has been cancelled
citra-transifex / transifex (push) Has been cancelled
citra-build / macos-universal (push) Has been cancelled
citra-build / release (push) Has been cancelled
This commit is contained in:
parent
608383ec84
commit
7d00f47c5e
@ -91,7 +91,11 @@ void PLG_LDR::serialize(Archive& ar, const unsigned int) {
|
||||
SERIALIZE_IMPL(PLG_LDR)
|
||||
|
||||
void PLG_LDR::OnProcessRun(Kernel::Process& process, Kernel::KernelSystem& kernel) {
|
||||
if (!plgldr_context.is_enabled || plgldr_context.plugin_loaded) {
|
||||
constexpr u32 TITLE_ID_APP_MASK = 0xFFFFFFED;
|
||||
constexpr u32 TITLE_ID_APP_VALUE = 0x04000000;
|
||||
if (!plgldr_context.is_enabled || plgldr_context.plugin_loaded ||
|
||||
(static_cast<u32>(process.codeset->program_id >> 32) & TITLE_ID_APP_MASK) !=
|
||||
TITLE_ID_APP_VALUE) {
|
||||
return;
|
||||
}
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user