diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_ldr.cpp | 24 | ||||
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_ldr.h | 16 | ||||
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_pr.cpp | 25 | ||||
| -rw-r--r-- | src/core/hle/service/filesystem/fsp_pr.h | 16 |
6 files changed, 89 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index d325ea359..7d615104e 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -174,6 +174,10 @@ add_library(core STATIC | |||
| 174 | hle/service/fatal/fatal_u.h | 174 | hle/service/fatal/fatal_u.h |
| 175 | hle/service/filesystem/filesystem.cpp | 175 | hle/service/filesystem/filesystem.cpp |
| 176 | hle/service/filesystem/filesystem.h | 176 | hle/service/filesystem/filesystem.h |
| 177 | hle/service/filesystem/fsp_ldr.cpp | ||
| 178 | hle/service/filesystem/fsp_ldr.h | ||
| 179 | hle/service/filesystem/fsp_pr.cpp | ||
| 180 | hle/service/filesystem/fsp_pr.h | ||
| 177 | hle/service/filesystem/fsp_srv.cpp | 181 | hle/service/filesystem/fsp_srv.cpp |
| 178 | hle/service/filesystem/fsp_srv.h | 182 | hle/service/filesystem/fsp_srv.h |
| 179 | hle/service/fgm/fgm.cpp | 183 | hle/service/fgm/fgm.cpp |
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index fdd2fda18..e17d637e4 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | #include "core/file_sys/vfs_offset.h" | 14 | #include "core/file_sys/vfs_offset.h" |
| 15 | #include "core/file_sys/vfs_real.h" | 15 | #include "core/file_sys/vfs_real.h" |
| 16 | #include "core/hle/service/filesystem/filesystem.h" | 16 | #include "core/hle/service/filesystem/filesystem.h" |
| 17 | #include "core/hle/service/filesystem/fsp_ldr.h" | ||
| 18 | #include "core/hle/service/filesystem/fsp_pr.h" | ||
| 17 | #include "core/hle/service/filesystem/fsp_srv.h" | 19 | #include "core/hle/service/filesystem/fsp_srv.h" |
| 18 | 20 | ||
| 19 | namespace Service::FileSystem { | 21 | namespace Service::FileSystem { |
| @@ -298,6 +300,8 @@ void RegisterFileSystems() { | |||
| 298 | 300 | ||
| 299 | void InstallInterfaces(SM::ServiceManager& service_manager) { | 301 | void InstallInterfaces(SM::ServiceManager& service_manager) { |
| 300 | RegisterFileSystems(); | 302 | RegisterFileSystems(); |
| 303 | std::make_shared<FSP_LDR>()->InstallAsService(service_manager); | ||
| 304 | std::make_shared<FSP_PR>()->InstallAsService(service_manager); | ||
| 301 | std::make_shared<FSP_SRV>()->InstallAsService(service_manager); | 305 | std::make_shared<FSP_SRV>()->InstallAsService(service_manager); |
| 302 | } | 306 | } |
| 303 | 307 | ||
diff --git a/src/core/hle/service/filesystem/fsp_ldr.cpp b/src/core/hle/service/filesystem/fsp_ldr.cpp new file mode 100644 index 000000000..ee6d4d055 --- /dev/null +++ b/src/core/hle/service/filesystem/fsp_ldr.cpp | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/filesystem/fsp_ldr.h" | ||
| 8 | #include "core/hle/service/service.h" | ||
| 9 | |||
| 10 | namespace Service::FileSystem { | ||
| 11 | |||
| 12 | FSP_LDR::FSP_LDR() : ServiceFramework{"fsp:ldr"} { | ||
| 13 | // clang-format off | ||
| 14 | static const FunctionInfo functions[] = { | ||
| 15 | {0, nullptr, "OpenCodeFileSystem"}, | ||
| 16 | {1, nullptr, "IsArchivedProgram"}, | ||
| 17 | {2, nullptr, "SetCurrentProcess"}, | ||
| 18 | }; | ||
| 19 | // clang-format on | ||
| 20 | |||
| 21 | RegisterHandlers(functions); | ||
| 22 | } | ||
| 23 | |||
| 24 | } // namespace Service::FileSystem | ||
diff --git a/src/core/hle/service/filesystem/fsp_ldr.h b/src/core/hle/service/filesystem/fsp_ldr.h new file mode 100644 index 000000000..fa8e11b4c --- /dev/null +++ b/src/core/hle/service/filesystem/fsp_ldr.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | namespace Service::FileSystem { | ||
| 10 | |||
| 11 | class FSP_LDR final : public ServiceFramework<FSP_LDR> { | ||
| 12 | public: | ||
| 13 | explicit FSP_LDR(); | ||
| 14 | }; | ||
| 15 | |||
| 16 | } // namespace Service::FileSystem | ||
diff --git a/src/core/hle/service/filesystem/fsp_pr.cpp b/src/core/hle/service/filesystem/fsp_pr.cpp new file mode 100644 index 000000000..0b51385ee --- /dev/null +++ b/src/core/hle/service/filesystem/fsp_pr.cpp | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/filesystem/fsp_pr.h" | ||
| 8 | #include "core/hle/service/service.h" | ||
| 9 | |||
| 10 | namespace Service::FileSystem { | ||
| 11 | |||
| 12 | FSP_PR::FSP_PR() : ServiceFramework{"fsp:pr"} { | ||
| 13 | // clang-format off | ||
| 14 | static const FunctionInfo functions[] = { | ||
| 15 | {0, nullptr, "RegisterProgram"}, | ||
| 16 | {1, nullptr, "UnregisterProgram"}, | ||
| 17 | {2, nullptr, "SetCurrentProcess"}, | ||
| 18 | {256, nullptr, "SetEnabledProgramVerification"}, | ||
| 19 | }; | ||
| 20 | // clang-format on | ||
| 21 | |||
| 22 | RegisterHandlers(functions); | ||
| 23 | } | ||
| 24 | |||
| 25 | } // namespace Service::FileSystem | ||
diff --git a/src/core/hle/service/filesystem/fsp_pr.h b/src/core/hle/service/filesystem/fsp_pr.h new file mode 100644 index 000000000..62edcd08a --- /dev/null +++ b/src/core/hle/service/filesystem/fsp_pr.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | namespace Service::FileSystem { | ||
| 10 | |||
| 11 | class FSP_PR final : public ServiceFramework<FSP_PR> { | ||
| 12 | public: | ||
| 13 | explicit FSP_PR(); | ||
| 14 | }; | ||
| 15 | |||
| 16 | } // namespace Service::FileSystem | ||