diff options
author | Liam <byteslice@airmail.cc> | 2024-01-08 06:49:00 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-11 17:28:52 +0100 |
commit | aae9eea53208fc0924c90ebb1272fcfaa3f23e0c (patch) | |
tree | 050ccc76dd2fad3c3f81197aa6435674caeac86f /src/core/hle/service/am/am.cpp | |
parent | Merge pull request #12608 from szepeviktor/typos (diff) | |
download | yuzu-aae9eea53208fc0924c90ebb1272fcfaa3f23e0c.tar yuzu-aae9eea53208fc0924c90ebb1272fcfaa3f23e0c.tar.gz yuzu-aae9eea53208fc0924c90ebb1272fcfaa3f23e0c.tar.bz2 yuzu-aae9eea53208fc0924c90ebb1272fcfaa3f23e0c.tar.lz yuzu-aae9eea53208fc0924c90ebb1272fcfaa3f23e0c.tar.xz yuzu-aae9eea53208fc0924c90ebb1272fcfaa3f23e0c.tar.zst yuzu-aae9eea53208fc0924c90ebb1272fcfaa3f23e0c.zip |
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 9e05bdafa..a768bdc54 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -36,6 +36,7 @@ #include "core/hle/service/caps/caps_su.h" #include "core/hle/service/caps/caps_types.h" #include "core/hle/service/filesystem/filesystem.h" +#include "core/hle/service/filesystem/save_data_controller.h" #include "core/hle/service/ipc_helpers.h" #include "core/hle/service/ns/ns.h" #include "core/hle/service/nvnflinger/fb_share_buffer_manager.h" @@ -2178,7 +2179,7 @@ void IApplicationFunctions::EnsureSaveData(HLERequestContext& ctx) { attribute.type = FileSys::SaveDataType::SaveData; FileSys::VirtualDir save_data{}; - const auto res = system.GetFileSystemController().CreateSaveData( + const auto res = system.GetFileSystemController().OpenSaveDataController()->CreateSaveData( &save_data, FileSys::SaveDataSpaceId::NandUser, attribute); IPC::ResponseBuilder rb{ctx, 4}; @@ -2353,7 +2354,7 @@ void IApplicationFunctions::ExtendSaveData(HLERequestContext& ctx) { "new_journal={:016X}", static_cast<u8>(type), user_id[1], user_id[0], new_normal_size, new_journal_size); - system.GetFileSystemController().WriteSaveDataSize( + system.GetFileSystemController().OpenSaveDataController()->WriteSaveDataSize( type, system.GetApplicationProcessProgramID(), user_id, {new_normal_size, new_journal_size}); @@ -2378,7 +2379,7 @@ void IApplicationFunctions::GetSaveDataSize(HLERequestContext& ctx) { LOG_DEBUG(Service_AM, "called with type={:02X}, user_id={:016X}{:016X}", type, user_id[1], user_id[0]); - const auto size = system.GetFileSystemController().ReadSaveDataSize( + const auto size = system.GetFileSystemController().OpenSaveDataController()->ReadSaveDataSize( type, system.GetApplicationProcessProgramID(), user_id); IPC::ResponseBuilder rb{ctx, 6}; |