summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-08-31 23:19:23 -0400
committerGravatar Zach Hilman2018-08-31 23:19:23 -0400
commit7939ea18e8573038ac6f2662e4314465d82ddd7c (patch)
treeadfaf6693087e015d54abd3bc618a9cd2c7e3c90 /src
parentMerge pull request #1196 from FearlessTobi/ccache-consistency (diff)
downloadyuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.tar.gz
yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.tar.xz
yuzu-7939ea18e8573038ac6f2662e4314465d82ddd7c.zip
filesystem: Add OpenFileSystemWithPatch
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp23
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.h1
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 @@
26 26
27namespace Service::FileSystem { 27namespace Service::FileSystem {
28 28
29enum class FileSystemType : u8 {
30 Invalid0 = 0,
31 Invalid1 = 1,
32 Logo = 2,
33 ContentControl = 3,
34 ContentManual = 4,
35 ContentMeta = 5,
36 ContentData = 6,
37 ApplicationPackage = 7,
38};
39
29class IStorage final : public ServiceFramework<IStorage> { 40class IStorage final : public ServiceFramework<IStorage> {
30public: 41public:
31 explicit IStorage(FileSys::VirtualFile backend_) 42 explicit IStorage(FileSys::VirtualFile backend_)
@@ -420,7 +431,7 @@ FSP_SRV::FSP_SRV() : ServiceFramework("fsp-srv") {
420 {0, nullptr, "MountContent"}, 431 {0, nullptr, "MountContent"},
421 {1, &FSP_SRV::Initialize, "Initialize"}, 432 {1, &FSP_SRV::Initialize, "Initialize"},
422 {2, nullptr, "OpenDataFileSystemByCurrentProcess"}, 433 {2, nullptr, "OpenDataFileSystemByCurrentProcess"},
423 {7, nullptr, "OpenFileSystemWithPatch"}, 434 {7, &FSP_SRV::OpenFileSystemWithPatch, "OpenFileSystemWithPatch"},
424 {8, nullptr, "OpenFileSystemWithId"}, 435 {8, nullptr, "OpenFileSystemWithId"},
425 {9, nullptr, "OpenDataFileSystemByApplicationId"}, 436 {9, nullptr, "OpenDataFileSystemByApplicationId"},
426 {11, nullptr, "OpenBisFileSystem"}, 437 {11, nullptr, "OpenBisFileSystem"},
@@ -516,6 +527,16 @@ void FSP_SRV::Initialize(Kernel::HLERequestContext& ctx) {
516 rb.Push(RESULT_SUCCESS); 527 rb.Push(RESULT_SUCCESS);
517} 528}
518 529
530void FSP_SRV::OpenFileSystemWithPatch(Kernel::HLERequestContext& ctx) {
531 IPC::RequestParser rp{ctx};
532
533 const auto type = rp.PopRaw<FileSystemType>();
534 const auto title_id = rp.PopRaw<u64>();
535
536 IPC::ResponseBuilder rb{ctx, 2, 0, 0};
537 rb.Push(ResultCode(-1));
538}
539
519void FSP_SRV::MountSdCard(Kernel::HLERequestContext& ctx) { 540void FSP_SRV::MountSdCard(Kernel::HLERequestContext& ctx) {
520 LOG_DEBUG(Service_FS, "called"); 541 LOG_DEBUG(Service_FS, "called");
521 542
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:
20 20
21private: 21private:
22 void Initialize(Kernel::HLERequestContext& ctx); 22 void Initialize(Kernel::HLERequestContext& ctx);
23 void OpenFileSystemWithPatch(Kernel::HLERequestContext& ctx);
23 void MountSdCard(Kernel::HLERequestContext& ctx); 24 void MountSdCard(Kernel::HLERequestContext& ctx);
24 void CreateSaveData(Kernel::HLERequestContext& ctx); 25 void CreateSaveData(Kernel::HLERequestContext& ctx);
25 void MountSaveData(Kernel::HLERequestContext& ctx); 26 void MountSaveData(Kernel::HLERequestContext& ctx);