diff options
| author | 2018-04-21 22:04:24 -0700 | |
|---|---|---|
| committer | 2018-04-21 22:04:24 -0700 | |
| commit | f3137d3bc12253ed0406ef01406b3b62c563bbd7 (patch) | |
| tree | c3f724f5fecb1fbc21dbc3ff0405dacbedca5efa /src/core/hle/service/ssl | |
| parent | Merge pull request #378 from Subv/a2bgr10 (diff) | |
| download | yuzu-f3137d3bc12253ed0406ef01406b3b62c563bbd7.tar.gz yuzu-f3137d3bc12253ed0406ef01406b3b62c563bbd7.tar.xz yuzu-f3137d3bc12253ed0406ef01406b3b62c563bbd7.zip | |
Implemented GetIUserInterface properly, Playreport and SSL::SetInterfaceVersion. Fixed ipc issues with IAudioDevice(wrong ids)
Diffstat (limited to 'src/core/hle/service/ssl')
| -rw-r--r-- | src/core/hle/service/ssl/ssl.cpp | 11 | ||||
| -rw-r--r-- | src/core/hle/service/ssl/ssl.h | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/core/hle/service/ssl/ssl.cpp b/src/core/hle/service/ssl/ssl.cpp index 11d438728..7e21fec8e 100644 --- a/src/core/hle/service/ssl/ssl.cpp +++ b/src/core/hle/service/ssl/ssl.cpp | |||
| @@ -96,12 +96,21 @@ SSL::SSL() : ServiceFramework("ssl") { | |||
| 96 | {2, nullptr, "GetCertificates"}, | 96 | {2, nullptr, "GetCertificates"}, |
| 97 | {3, nullptr, "GetCertificateBufSize"}, | 97 | {3, nullptr, "GetCertificateBufSize"}, |
| 98 | {4, nullptr, "DebugIoctl"}, | 98 | {4, nullptr, "DebugIoctl"}, |
| 99 | {5, nullptr, "SetInterfaceVersion"}, | 99 | {5, &SSL::SetInterfaceVersion, "SetInterfaceVersion"}, |
| 100 | {6, nullptr, "FlushSessionCache"}, | 100 | {6, nullptr, "FlushSessionCache"}, |
| 101 | }; | 101 | }; |
| 102 | RegisterHandlers(functions); | 102 | RegisterHandlers(functions); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void SSL::SetInterfaceVersion(Kernel::HLERequestContext& ctx) { | ||
| 106 | IPC::RequestParser rp{ctx}; | ||
| 107 | u32 unk1 = rp.Pop<u32>(); // Probably minor/major? | ||
| 108 | u32 unk2 = rp.Pop<u32>(); | ||
| 109 | |||
| 110 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 111 | rb.Push(RESULT_SUCCESS); | ||
| 112 | } | ||
| 113 | |||
| 105 | void InstallInterfaces(SM::ServiceManager& service_manager) { | 114 | void InstallInterfaces(SM::ServiceManager& service_manager) { |
| 106 | std::make_shared<SSL>()->InstallAsService(service_manager); | 115 | std::make_shared<SSL>()->InstallAsService(service_manager); |
| 107 | } | 116 | } |
diff --git a/src/core/hle/service/ssl/ssl.h b/src/core/hle/service/ssl/ssl.h index 87538a639..8fef13022 100644 --- a/src/core/hle/service/ssl/ssl.h +++ b/src/core/hle/service/ssl/ssl.h | |||
| @@ -15,6 +15,7 @@ public: | |||
| 15 | 15 | ||
| 16 | private: | 16 | private: |
| 17 | void CreateContext(Kernel::HLERequestContext& ctx); | 17 | void CreateContext(Kernel::HLERequestContext& ctx); |
| 18 | void SetInterfaceVersion(Kernel::HLERequestContext& ctx); | ||
| 18 | }; | 19 | }; |
| 19 | 20 | ||
| 20 | /// Registers all SSL services with the specified service manager. | 21 | /// Registers all SSL services with the specified service manager. |