diff options
| author | 2018-01-16 14:18:18 -0800 | |
|---|---|---|
| committer | 2018-01-16 14:18:18 -0800 | |
| commit | 104dd867c413b78d09e14bc453a7c37c5f6665c9 (patch) | |
| tree | cf9563aaf39a1ad15d9a87172df6a58482c6b5da /src/core/hle | |
| parent | Added more svcGetInfo pairs (diff) | |
| download | yuzu-104dd867c413b78d09e14bc453a7c37c5f6665c9.tar.gz yuzu-104dd867c413b78d09e14bc453a7c37c5f6665c9.tar.xz yuzu-104dd867c413b78d09e14bc453a7c37c5f6665c9.zip | |
implemented more of ISelfController and IApplicationFunctions
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/am/applet_oe.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp index f65d6b9f5..b629ac509 100644 --- a/src/core/hle/service/am/applet_oe.cpp +++ b/src/core/hle/service/am/applet_oe.cpp | |||
| @@ -54,7 +54,14 @@ class ISelfController final : public ServiceFramework<ISelfController> { | |||
| 54 | public: | 54 | public: |
| 55 | ISelfController() : ServiceFramework("ISelfController") { | 55 | ISelfController() : ServiceFramework("ISelfController") { |
| 56 | static const FunctionInfo functions[] = { | 56 | static const FunctionInfo functions[] = { |
| 57 | {11, &ISelfController::SetOperationModeChangedNotification, | ||
| 58 | "SetOperationModeChangedNotification"}, | ||
| 59 | {12, &ISelfController::SetPerformanceModeChangedNotification, | ||
| 60 | "SetPerformanceModeChangedNotification"}, | ||
| 57 | {13, &ISelfController::SetFocusHandlingMode, "SetFocusHandlingMode"}, | 61 | {13, &ISelfController::SetFocusHandlingMode, "SetFocusHandlingMode"}, |
| 62 | {14, &ISelfController::SetRestartMessageEnabled, "SetRestartMessageEnabled"}, | ||
| 63 | {16, &ISelfController::SetOutOfFocusSuspendingEnabled, | ||
| 64 | "SetOutOfFocusSuspendingEnabled"}, | ||
| 58 | }; | 65 | }; |
| 59 | RegisterHandlers(functions); | 66 | RegisterHandlers(functions); |
| 60 | } | 67 | } |
| @@ -69,6 +76,37 @@ private: | |||
| 69 | 76 | ||
| 70 | LOG_WARNING(Service, "(STUBBED) called"); | 77 | LOG_WARNING(Service, "(STUBBED) called"); |
| 71 | } | 78 | } |
| 79 | |||
| 80 | void SetRestartMessageEnabled(Kernel::HLERequestContext& ctx) { | ||
| 81 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 82 | rb.Push(RESULT_SUCCESS); | ||
| 83 | |||
| 84 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 85 | } | ||
| 86 | |||
| 87 | void SetPerformanceModeChangedNotification(Kernel::HLERequestContext& ctx) { | ||
| 88 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 89 | rb.Push(RESULT_SUCCESS); | ||
| 90 | |||
| 91 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 92 | } | ||
| 93 | |||
| 94 | void SetOperationModeChangedNotification(Kernel::HLERequestContext& ctx) { | ||
| 95 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 96 | rb.Push(RESULT_SUCCESS); | ||
| 97 | |||
| 98 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 99 | } | ||
| 100 | |||
| 101 | void SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) { | ||
| 102 | // Takes 3 input u8s with each field located immediately after the previous u8, these are | ||
| 103 | // bool flags. No output. | ||
| 104 | |||
| 105 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 106 | rb.Push(RESULT_SUCCESS); | ||
| 107 | |||
| 108 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 109 | } | ||
| 72 | }; | 110 | }; |
| 73 | 111 | ||
| 74 | class ICommonStateGetter final : public ServiceFramework<ICommonStateGetter> { | 112 | class ICommonStateGetter final : public ServiceFramework<ICommonStateGetter> { |
| @@ -119,6 +157,9 @@ public: | |||
| 119 | IApplicationFunctions() : ServiceFramework("IApplicationFunctions") { | 157 | IApplicationFunctions() : ServiceFramework("IApplicationFunctions") { |
| 120 | static const FunctionInfo functions[] = { | 158 | static const FunctionInfo functions[] = { |
| 121 | {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, | 159 | {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, |
| 160 | {66, &IApplicationFunctions::InitializeGamePlayRecording, | ||
| 161 | "InitializeGamePlayRecording"}, | ||
| 162 | {67, &IApplicationFunctions::SetGamePlayRecordingState, "SetGamePlayRecordingState"}, | ||
| 122 | }; | 163 | }; |
| 123 | RegisterHandlers(functions); | 164 | RegisterHandlers(functions); |
| 124 | } | 165 | } |
| @@ -136,6 +177,18 @@ private: | |||
| 136 | 177 | ||
| 137 | LOG_WARNING(Service, "(STUBBED) called, result=0x%08X", result); | 178 | LOG_WARNING(Service, "(STUBBED) called, result=0x%08X", result); |
| 138 | } | 179 | } |
| 180 | |||
| 181 | void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) { | ||
| 182 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 183 | rb.Push(RESULT_SUCCESS); | ||
| 184 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 185 | } | ||
| 186 | |||
| 187 | void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx) { | ||
| 188 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 189 | rb.Push(RESULT_SUCCESS); | ||
| 190 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 191 | } | ||
| 139 | }; | 192 | }; |
| 140 | 193 | ||
| 141 | class ILibraryAppletCreator final : public ServiceFramework<ILibraryAppletCreator> { | 194 | class ILibraryAppletCreator final : public ServiceFramework<ILibraryAppletCreator> { |