summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp14
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 3ac5a96cb..97b3fa290 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -245,6 +245,7 @@ FSP_SRV::FSP_SRV() : ServiceFramework("fsp-srv") {
245 static const FunctionInfo functions[] = { 245 static const FunctionInfo functions[] = {
246 {1, &FSP_SRV::Initalize, "Initalize"}, 246 {1, &FSP_SRV::Initalize, "Initalize"},
247 {18, &FSP_SRV::MountSdCard, "MountSdCard"}, 247 {18, &FSP_SRV::MountSdCard, "MountSdCard"},
248 {22, &FSP_SRV::CreateSaveData, "CreateSaveData"},
248 {51, &FSP_SRV::MountSaveData, "MountSaveData"}, 249 {51, &FSP_SRV::MountSaveData, "MountSaveData"},
249 {200, &FSP_SRV::OpenDataStorageByCurrentProcess, "OpenDataStorageByCurrentProcess"}, 250 {200, &FSP_SRV::OpenDataStorageByCurrentProcess, "OpenDataStorageByCurrentProcess"},
250 {202, nullptr, "OpenDataStorageByDataId"}, 251 {202, nullptr, "OpenDataStorageByDataId"},
@@ -279,6 +280,19 @@ void FSP_SRV::MountSdCard(Kernel::HLERequestContext& ctx) {
279 rb.Push(RESULT_SUCCESS); 280 rb.Push(RESULT_SUCCESS);
280} 281}
281 282
283void FSP_SRV::CreateSaveData(Kernel::HLERequestContext& ctx) {
284 IPC::RequestParser rp{ctx};
285
286 auto save_struct = rp.PopRaw<std::array<u8, 0x40>>();
287 auto save_create_struct = rp.PopRaw<std::array<u8, 0x40>>();
288 u128 uid = rp.PopRaw<u128>();
289
290 LOG_WARNING(Service_FS, "(STUBBED) called uid = %016" PRIX64 "%016" PRIX64, uid[1], uid[0]);
291
292 IPC::ResponseBuilder rb{ctx, 2};
293 rb.Push(RESULT_SUCCESS);
294}
295
282void FSP_SRV::MountSaveData(Kernel::HLERequestContext& ctx) { 296void FSP_SRV::MountSaveData(Kernel::HLERequestContext& ctx) {
283 LOG_WARNING(Service_FS, "(STUBBED) called"); 297 LOG_WARNING(Service_FS, "(STUBBED) called");
284 298
diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.h
index f19b2f2c4..e15ba4375 100644
--- a/src/core/hle/service/filesystem/fsp_srv.h
+++ b/src/core/hle/service/filesystem/fsp_srv.h
@@ -24,6 +24,7 @@ private:
24 24
25 void Initalize(Kernel::HLERequestContext& ctx); 25 void Initalize(Kernel::HLERequestContext& ctx);
26 void MountSdCard(Kernel::HLERequestContext& ctx); 26 void MountSdCard(Kernel::HLERequestContext& ctx);
27 void CreateSaveData(Kernel::HLERequestContext& ctx);
27 void MountSaveData(Kernel::HLERequestContext& ctx); 28 void MountSaveData(Kernel::HLERequestContext& ctx);
28 void GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx); 29 void GetGlobalAccessLogMode(Kernel::HLERequestContext& ctx);
29 void OpenDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx); 30 void OpenDataStorageByCurrentProcess(Kernel::HLERequestContext& ctx);