VERY experimental Nintendo Switch 2 emulator
C++
[hle] Implement IApplicationManagerInterface::GetTotalSpaceSize (#3642)
lizzie75104b6103fc
diff --git a/src/core/hle/service/ns/application_manager_interface.cpp b/src/core/hle/service/ns/application_manager_interface.cppindex bed5057f37..5490c09d03 100644--- a/src/core/hle/service/ns/application_manager_interface.cpp+++ b/src/core/hle/service/ns/application_manager_interface.cpp@@ -67,7 +67,7 @@ IApplicationManagerInterface::IApplicationManagerInterface(Core::System& system_{44, D<&IApplicationManagerInterface::GetSdCardMountStatusChangedEvent>, "GetSdCardMountStatusChangedEvent"},{45, nullptr, "GetGameCardAttachmentEvent"},{46, nullptr, "GetGameCardAttachmentInfo"},- {47, nullptr, "GetTotalSpaceSize"},+ {47, D<&IApplicationManagerInterface::GetTotalSpaceSize>, "GetTotalSpaceSize"},{48, D<&IApplicationManagerInterface::GetFreeSpaceSize>, "GetFreeSpaceSize"},{49, nullptr, "GetSdCardRemovedEvent"},{52, D<&IApplicationManagerInterface::GetGameCardUpdateDetectionEvent>, "GetGameCardUpdateDetectionEvent"},@@ -751,8 +751,12 @@ Result IApplicationManagerInterface::GetSdCardMountStatusChangedEvent(R_SUCCEED();}-Result IApplicationManagerInterface::GetFreeSpaceSize(Out<s64> out_free_space_size,- FileSys::StorageId storage_id) {+Result IApplicationManagerInterface::GetTotalSpaceSize(Out<s64> out_total_space_size, FileSys::StorageId storage_id) {+ LOG_DEBUG(Service_NS, "called");+ R_RETURN(IContentManagementInterface(system).GetTotalSpaceSize(out_total_space_size, storage_id));+}++Result IApplicationManagerInterface::GetFreeSpaceSize(Out<s64> out_free_space_size, FileSys::StorageId storage_id) {LOG_DEBUG(Service_NS, "called");R_RETURN(IContentManagementInterface(system).GetFreeSpaceSize(out_free_space_size, storage_id));}diff --git a/src/core/hle/service/ns/application_manager_interface.h b/src/core/hle/service/ns/application_manager_interface.hindex ffb744d3fa..245d59a068 100644--- a/src/core/hle/service/ns/application_manager_interface.h+++ b/src/core/hle/service/ns/application_manager_interface.h@@ -50,6 +50,7 @@ public:u32 flags, u64 application_id, Uid account_id);Result CheckSdCardMountStatus();Result GetSdCardMountStatusChangedEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);+ Result GetTotalSpaceSize(Out<s64> out_total_space_size, FileSys::StorageId storage_id);Result GetFreeSpaceSize(Out<s64> out_free_space_size, FileSys::StorageId storage_id);Result GetGameCardUpdateDetectionEvent(OutCopyHandle<Kernel::KReadableEvent> out_event);Result ResumeAll();