diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-17 00:27:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 00:27:48 +0100 |
commit | 1aa4cdc3c8326e5db875c8a26afe14d6fbffdc3d (patch) | |
tree | 160c4a53715012ad8cb16c0738240d9530af4739 /src/core/hle/service | |
parent | Merge pull request #45 from FearlessTobi/patch-1 (diff) | |
parent | Update memory.h (diff) | |
download | yuzu-1aa4cdc3c8326e5db875c8a26afe14d6fbffdc3d.tar yuzu-1aa4cdc3c8326e5db875c8a26afe14d6fbffdc3d.tar.gz yuzu-1aa4cdc3c8326e5db875c8a26afe14d6fbffdc3d.tar.bz2 yuzu-1aa4cdc3c8326e5db875c8a26afe14d6fbffdc3d.tar.lz yuzu-1aa4cdc3c8326e5db875c8a26afe14d6fbffdc3d.tar.xz yuzu-1aa4cdc3c8326e5db875c8a26afe14d6fbffdc3d.tar.zst yuzu-1aa4cdc3c8326e5db875c8a26afe14d6fbffdc3d.zip |
Diffstat (limited to 'src/core/hle/service')
-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> { public: ISelfController() : ServiceFramework("ISelfController") { static const FunctionInfo functions[] = { + {11, &ISelfController::SetOperationModeChangedNotification, + "SetOperationModeChangedNotification"}, + {12, &ISelfController::SetPerformanceModeChangedNotification, + "SetPerformanceModeChangedNotification"}, {13, &ISelfController::SetFocusHandlingMode, "SetFocusHandlingMode"}, + {14, &ISelfController::SetRestartMessageEnabled, "SetRestartMessageEnabled"}, + {16, &ISelfController::SetOutOfFocusSuspendingEnabled, + "SetOutOfFocusSuspendingEnabled"}, }; RegisterHandlers(functions); } @@ -69,6 +76,37 @@ private: LOG_WARNING(Service, "(STUBBED) called"); } + + void SetRestartMessageEnabled(Kernel::HLERequestContext& ctx) { + IPC::RequestBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + + LOG_WARNING(Service, "(STUBBED) called"); + } + + void SetPerformanceModeChangedNotification(Kernel::HLERequestContext& ctx) { + IPC::RequestBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + + LOG_WARNING(Service, "(STUBBED) called"); + } + + void SetOperationModeChangedNotification(Kernel::HLERequestContext& ctx) { + IPC::RequestBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + + LOG_WARNING(Service, "(STUBBED) called"); + } + + void SetOutOfFocusSuspendingEnabled(Kernel::HLERequestContext& ctx) { + // Takes 3 input u8s with each field located immediately after the previous u8, these are + // bool flags. No output. + + IPC::RequestBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + + LOG_WARNING(Service, "(STUBBED) called"); + } }; class ICommonStateGetter final : public ServiceFramework<ICommonStateGetter> { @@ -119,6 +157,9 @@ public: IApplicationFunctions() : ServiceFramework("IApplicationFunctions") { static const FunctionInfo functions[] = { {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, + {66, &IApplicationFunctions::InitializeGamePlayRecording, + "InitializeGamePlayRecording"}, + {67, &IApplicationFunctions::SetGamePlayRecordingState, "SetGamePlayRecordingState"}, }; RegisterHandlers(functions); } @@ -136,6 +177,18 @@ private: LOG_WARNING(Service, "(STUBBED) called, result=0x%08X", result); } + + void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) { + IPC::RequestBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + LOG_WARNING(Service, "(STUBBED) called"); + } + + void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx) { + IPC::RequestBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + LOG_WARNING(Service, "(STUBBED) called"); + } }; class ILibraryAppletCreator final : public ServiceFramework<ILibraryAppletCreator> { |