diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-09-01 05:19:23 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-09-01 05:19:23 +0200 |
commit | 7939ea18e8573038ac6f2662e4314465d82ddd7c (patch) | |
tree | adfaf6693087e015d54abd3bc618a9cd2c7e3c90 /src/core/hle/service/filesystem | |
parent | Merge pull request #1196 from FearlessTobi/ccache-consistency (diff) | |
download | yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.tar yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.tar.gz yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.tar.bz2 yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.tar.lz yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.tar.xz yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.tar.zst yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.zip |
Diffstat (limited to 'src/core/hle/service/filesystem')
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.cpp | 23 | ||||
-rw-r--r-- | src/core/hle/service/filesystem/fsp_srv.h | 1 |
2 files changed, 23 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index 5759299fe..994845f94 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp @@ -26,6 +26,17 @@ namespace Service::FileSystem { +enum class FileSystemType : u8 { + Invalid0 = 0, + Invalid1 = 1, + Logo = 2, + ContentControl = 3, + ContentManual = 4, + ContentMeta = 5, + ContentData = 6, + ApplicationPackage = 7, +}; + class IStorage final : public ServiceFramework<IStorage> { public: explicit IStorage(FileSys::VirtualFile backend_) @@ -420,7 +431,7 @@ FSP_SRV::FSP_SRV() : ServiceFramework("fsp-srv") { {0, nullptr, "MountContent"}, {1, &FSP_SRV::Initialize, "Initialize"}, {2, nullptr, "OpenDataFileSystemByCurrentProcess"}, - {7, nullptr, "OpenFileSystemWithPatch"}, + {7, &FSP_SRV::OpenFileSystemWithPatch, "OpenFileSystemWithPatch"}, {8, nullptr, "OpenFileSystemWithId"}, {9, nullptr, "OpenDataFileSystemByApplicationId"}, {11, nullptr, "OpenBisFileSystem"}, @@ -516,6 +527,16 @@ void FSP_SRV::Initialize(Kernel::HLERequestContext& ctx) { rb.Push(RESULT_SUCCESS); } +void FSP_SRV::OpenFileSystemWithPatch(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + + const auto type = rp.PopRaw<FileSystemType>(); + const auto title_id = rp.PopRaw<u64>(); + + IPC::ResponseBuilder rb{ctx, 2, 0, 0}; + rb.Push(ResultCode(-1)); +} + void FSP_SRV::MountSdCard(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_FS, "called"); diff --git a/src/core/hle/service/filesystem/fsp_srv.h b/src/core/hle/service/filesystem/fsp_srv.h index f073ac523..b5842ecdd 100644 --- a/src/core/hle/service/filesystem/fsp_srv.h +++ b/src/core/hle/service/filesystem/fsp_srv.h @@ -20,6 +20,7 @@ public: private: void Initialize(Kernel::HLERequestContext& ctx); + void OpenFileSystemWithPatch(Kernel::HLERequestContext& ctx); void MountSdCard(Kernel::HLERequestContext& ctx); void CreateSaveData(Kernel::HLERequestContext& ctx); void MountSaveData(Kernel::HLERequestContext& ctx); |