diff options
| author | 2018-03-04 14:31:57 -0500 | |
|---|---|---|
| committer | 2018-03-04 14:31:57 -0500 | |
| commit | e4b7a1d160fd44dee82a86a4c186a29b19924f0d (patch) | |
| tree | 07726795dc6b4c30239630e844c08e20d27827f7 /src/core | |
| parent | FS: Make EnsureSaveData create the savedata folder when called for the first ... (diff) | |
| download | yuzu-e4b7a1d160fd44dee82a86a4c186a29b19924f0d.tar.gz yuzu-e4b7a1d160fd44dee82a86a4c186a29b19924f0d.tar.xz yuzu-e4b7a1d160fd44dee82a86a4c186a29b19924f0d.zip | |
FS: Stubbed CreateSaveData. It currently does nothing.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 14 | ||||
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.h | 1 |
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 | ||
| 283 | void 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 | |||
| 282 | void FSP_SRV::MountSaveData(Kernel::HLERequestContext& ctx) { | 296 | void 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); |