diff options
| author | 2018-03-19 21:21:49 -0500 | |
|---|---|---|
| committer | 2018-03-19 21:21:49 -0500 | |
| commit | 808704c78cd2bb39523e488687eb3743ca443847 (patch) | |
| tree | 540f8d10d45de658d67ee74fa8bc094e354df73a /src | |
| parent | FS: Added an SDMC archive factory and registered it to the SDMC archive on st... (diff) | |
| download | yuzu-808704c78cd2bb39523e488687eb3743ca443847.tar.gz yuzu-808704c78cd2bb39523e488687eb3743ca443847.tar.xz yuzu-808704c78cd2bb39523e488687eb3743ca443847.zip | |
FS: Implement MountSdCard.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index 97b3fa290..720ac9930 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp | |||
| @@ -274,10 +274,14 @@ void FSP_SRV::Initalize(Kernel::HLERequestContext& ctx) { | |||
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void FSP_SRV::MountSdCard(Kernel::HLERequestContext& ctx) { | 276 | void FSP_SRV::MountSdCard(Kernel::HLERequestContext& ctx) { |
| 277 | LOG_WARNING(Service_FS, "(STUBBED) called"); | 277 | LOG_DEBUG(Service_FS, "called"); |
| 278 | 278 | ||
| 279 | IPC::ResponseBuilder rb{ctx, 2}; | 279 | FileSys::Path unused; |
| 280 | auto filesystem = OpenFileSystem(Type::SDMC, unused).Unwrap(); | ||
| 281 | |||
| 282 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | ||
| 280 | rb.Push(RESULT_SUCCESS); | 283 | rb.Push(RESULT_SUCCESS); |
| 284 | rb.PushIpcInterface<IFileSystem>(std::move(filesystem)); | ||
| 281 | } | 285 | } |
| 282 | 286 | ||
| 283 | void FSP_SRV::CreateSaveData(Kernel::HLERequestContext& ctx) { | 287 | void FSP_SRV::CreateSaveData(Kernel::HLERequestContext& ctx) { |