diff options
| author | 2018-01-07 10:02:48 -0500 | |
|---|---|---|
| committer | 2018-01-07 17:12:01 -0500 | |
| commit | 166286e9769f6d7ee542c1cf672443d994d09580 (patch) | |
| tree | 68319623e544627ae0727e2cd5c3627b75b3d49c /src | |
| parent | IPC: Take the number of domain objects as a parameter in MakeBuilder. (diff) | |
| download | yuzu-166286e9769f6d7ee542c1cf672443d994d09580.tar.gz yuzu-166286e9769f6d7ee542c1cf672443d994d09580.tar.xz yuzu-166286e9769f6d7ee542c1cf672443d994d09580.zip | |
IPC: Corrected some command header sizes in appletOE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/applet_oe.cpp | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp index 34cc67f34..2784b8cfc 100644 --- a/src/core/hle/service/am/applet_oe.cpp +++ b/src/core/hle/service/am/applet_oe.cpp | |||
| @@ -23,14 +23,14 @@ public: | |||
| 23 | private: | 23 | private: |
| 24 | void GetAppletResourceUserId(Kernel::HLERequestContext& ctx) { | 24 | void GetAppletResourceUserId(Kernel::HLERequestContext& ctx) { |
| 25 | LOG_WARNING(Service, "(STUBBED) called"); | 25 | LOG_WARNING(Service, "(STUBBED) called"); |
| 26 | IPC::RequestBuilder rb{ctx, 3}; | 26 | IPC::RequestBuilder rb{ctx, 4}; |
| 27 | rb.Push(RESULT_SUCCESS); | 27 | rb.Push(RESULT_SUCCESS); |
| 28 | rb.Push<u64>(0); | 28 | rb.Push<u64>(0); |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | void AcquireForegroundRights(Kernel::HLERequestContext& ctx) { | 31 | void AcquireForegroundRights(Kernel::HLERequestContext& ctx) { |
| 32 | LOG_WARNING(Service, "(STUBBED) called"); | 32 | LOG_WARNING(Service, "(STUBBED) called"); |
| 33 | IPC::RequestBuilder rb{ctx, 1}; | 33 | IPC::RequestBuilder rb{ctx, 2}; |
| 34 | rb.Push(RESULT_SUCCESS); | 34 | rb.Push(RESULT_SUCCESS); |
| 35 | } | 35 | } |
| 36 | }; | 36 | }; |
| @@ -79,7 +79,7 @@ private: | |||
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | void ReceiveMessage(Kernel::HLERequestContext& ctx) { | 81 | void ReceiveMessage(Kernel::HLERequestContext& ctx) { |
| 82 | IPC::RequestBuilder rb{ctx, 2}; | 82 | IPC::RequestBuilder rb{ctx, 4}; |
| 83 | rb.Push(RESULT_SUCCESS); | 83 | rb.Push(RESULT_SUCCESS); |
| 84 | rb.Skip(1, true); | 84 | rb.Skip(1, true); |
| 85 | rb.Push<u32>(1); | 85 | rb.Push<u32>(1); |
| @@ -118,48 +118,57 @@ public: | |||
| 118 | 118 | ||
| 119 | private: | 119 | private: |
| 120 | void GetAudioController(Kernel::HLERequestContext& ctx) { | 120 | void GetAudioController(Kernel::HLERequestContext& ctx) { |
| 121 | IPC::RequestBuilder rb{ctx, 1}; | 121 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 122 | rb.Push(RESULT_SUCCESS); | ||
| 122 | rb.PushIpcInterface<IAudioController>(); | 123 | rb.PushIpcInterface<IAudioController>(); |
| 123 | } | 124 | } |
| 124 | 125 | ||
| 125 | void GetDisplayController(Kernel::HLERequestContext& ctx) { | 126 | void GetDisplayController(Kernel::HLERequestContext& ctx) { |
| 126 | IPC::RequestBuilder rb{ctx, 1}; | 127 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 128 | rb.Push(RESULT_SUCCESS); | ||
| 127 | rb.PushIpcInterface<IDisplayController>(); | 129 | rb.PushIpcInterface<IDisplayController>(); |
| 128 | } | 130 | } |
| 129 | 131 | ||
| 130 | void GetDebugFunctions(Kernel::HLERequestContext& ctx) { | 132 | void GetDebugFunctions(Kernel::HLERequestContext& ctx) { |
| 131 | IPC::RequestBuilder rb{ctx, 1}; | 133 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 134 | rb.Push(RESULT_SUCCESS); | ||
| 132 | rb.PushIpcInterface<IDebugFunctions>(); | 135 | rb.PushIpcInterface<IDebugFunctions>(); |
| 133 | } | 136 | } |
| 134 | 137 | ||
| 135 | void GetWindowController(Kernel::HLERequestContext& ctx) { | 138 | void GetWindowController(Kernel::HLERequestContext& ctx) { |
| 136 | IPC::RequestBuilder rb{ctx, 1}; | 139 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 140 | rb.Push(RESULT_SUCCESS); | ||
| 137 | rb.PushIpcInterface<IWindowController>(); | 141 | rb.PushIpcInterface<IWindowController>(); |
| 138 | } | 142 | } |
| 139 | 143 | ||
| 140 | void GetSelfController(Kernel::HLERequestContext& ctx) { | 144 | void GetSelfController(Kernel::HLERequestContext& ctx) { |
| 141 | IPC::RequestBuilder rb{ctx, 1}; | 145 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 146 | rb.Push(RESULT_SUCCESS); | ||
| 142 | rb.PushIpcInterface<ISelfController>(); | 147 | rb.PushIpcInterface<ISelfController>(); |
| 143 | } | 148 | } |
| 144 | 149 | ||
| 145 | void GetCommonStateGetter(Kernel::HLERequestContext& ctx) { | 150 | void GetCommonStateGetter(Kernel::HLERequestContext& ctx) { |
| 146 | IPC::RequestBuilder rb{ctx, 1}; | 151 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 152 | rb.Push(RESULT_SUCCESS); | ||
| 147 | rb.PushIpcInterface<ICommonStateGetter>(); | 153 | rb.PushIpcInterface<ICommonStateGetter>(); |
| 148 | } | 154 | } |
| 149 | 155 | ||
| 150 | void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { | 156 | void GetLibraryAppletCreator(Kernel::HLERequestContext& ctx) { |
| 151 | IPC::RequestBuilder rb{ctx, 1}; | 157 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 158 | rb.Push(RESULT_SUCCESS); | ||
| 152 | rb.PushIpcInterface<ILibraryAppletCreator>(); | 159 | rb.PushIpcInterface<ILibraryAppletCreator>(); |
| 153 | } | 160 | } |
| 154 | 161 | ||
| 155 | void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { | 162 | void GetApplicationFunctions(Kernel::HLERequestContext& ctx) { |
| 156 | IPC::RequestBuilder rb{ctx, 1}; | 163 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 164 | rb.Push(RESULT_SUCCESS); | ||
| 157 | rb.PushIpcInterface<IApplicationFunctions>(); | 165 | rb.PushIpcInterface<IApplicationFunctions>(); |
| 158 | } | 166 | } |
| 159 | }; | 167 | }; |
| 160 | 168 | ||
| 161 | void AppletOE::OpenApplicationProxy(Kernel::HLERequestContext& ctx) { | 169 | void AppletOE::OpenApplicationProxy(Kernel::HLERequestContext& ctx) { |
| 162 | IPC::RequestBuilder rb{ctx, 1}; | 170 | IPC::RequestBuilder rb{ctx, 2, 0, 0, 1}; |
| 171 | rb.Push(RESULT_SUCCESS); | ||
| 163 | rb.PushIpcInterface<IApplicationProxy>(); | 172 | rb.PushIpcInterface<IApplicationProxy>(); |
| 164 | } | 173 | } |
| 165 | 174 | ||