mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-12 09:28:18 -05:00
general: Get the current process program id directly from the system
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
This commit is contained in:
@ -12,7 +12,6 @@
|
||||
#include "core/core.h"
|
||||
#include "core/hle/ipc_helpers.h"
|
||||
#include "core/hle/kernel/k_page_table.h"
|
||||
#include "core/hle/kernel/k_process.h"
|
||||
#include "core/hle/kernel/k_system_control.h"
|
||||
#include "core/hle/kernel/svc_results.h"
|
||||
#include "core/hle/service/ldr/ldr.h"
|
||||
@ -247,7 +246,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
if (system.CurrentProcess()->GetProgramID() != header.application_id) {
|
||||
if (system.GetCurrentProcessProgramID() != header.application_id) {
|
||||
LOG_ERROR(Service_LDR,
|
||||
"Attempting to load NRR with title ID other than current process. (actual "
|
||||
"{:016X})!",
|
||||
|
Reference in New Issue
Block a user