SaveData: Use the current titleid when opening the savedata archive.
This commit is contained in:
parent
827f8ca3c7
commit
3209cff530
@ -9,6 +9,7 @@
|
|||||||
#include "common/string_util.h"
|
#include "common/string_util.h"
|
||||||
#include "core/file_sys/disk_filesystem.h"
|
#include "core/file_sys/disk_filesystem.h"
|
||||||
#include "core/file_sys/savedata_factory.h"
|
#include "core/file_sys/savedata_factory.h"
|
||||||
|
#include "core/hle/kernel/process.h"
|
||||||
|
|
||||||
namespace FileSys {
|
namespace FileSys {
|
||||||
|
|
||||||
@ -16,8 +17,8 @@ SaveData_Factory::SaveData_Factory(std::string nand_directory)
|
|||||||
: nand_directory(std::move(nand_directory)) {}
|
: nand_directory(std::move(nand_directory)) {}
|
||||||
|
|
||||||
ResultVal<std::unique_ptr<FileSystemBackend>> SaveData_Factory::Open(const Path& path) {
|
ResultVal<std::unique_ptr<FileSystemBackend>> SaveData_Factory::Open(const Path& path) {
|
||||||
// TODO(Subv): Somehow obtain these values.
|
u64 title_id = Kernel::g_current_process->program_id;
|
||||||
u64 title_id = 0;
|
// TODO(Subv): Somehow obtain this value.
|
||||||
u32 user = 0;
|
u32 user = 0;
|
||||||
std::string save_directory = Common::StringFromFormat("%ssave/%016" PRIX64 "/%08X",
|
std::string save_directory = Common::StringFromFormat("%ssave/%016" PRIX64 "/%08X",
|
||||||
nand_directory.c_str(), title_id, user);
|
nand_directory.c_str(), title_id, user);
|
||||||
|
Loading…
Reference in New Issue
Block a user