mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 06:38:03 -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:
@ -9,7 +9,6 @@
|
||||
#include "core/core.h"
|
||||
#include "core/file_sys/savedata_factory.h"
|
||||
#include "core/file_sys/vfs.h"
|
||||
#include "core/hle/kernel/k_process.h"
|
||||
|
||||
namespace FileSys {
|
||||
|
||||
@ -143,7 +142,7 @@ std::string SaveDataFactory::GetFullPath(Core::System& system, SaveDataSpaceId s
|
||||
// be interpreted as the title id of the current process.
|
||||
if (type == SaveDataType::SaveData || type == SaveDataType::DeviceSaveData) {
|
||||
if (title_id == 0) {
|
||||
title_id = system.CurrentProcess()->GetProgramID();
|
||||
title_id = system.GetCurrentProcessProgramID();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user