diff options
author | Subv <subv2112@gmail.com> | 2018-01-22 19:50:22 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-01-22 19:50:22 +0100 |
commit | 10c67bf39504aae36b06d4abe8055aaf6feeb2ad (patch) | |
tree | bc59898e7fef3dfacffeb204db862b3cc19037f4 | |
parent | AppletOE: Make ISelfController keep a reference to nvflinger. (diff) | |
download | yuzu-10c67bf39504aae36b06d4abe8055aaf6feeb2ad.tar yuzu-10c67bf39504aae36b06d4abe8055aaf6feeb2ad.tar.gz yuzu-10c67bf39504aae36b06d4abe8055aaf6feeb2ad.tar.bz2 yuzu-10c67bf39504aae36b06d4abe8055aaf6feeb2ad.tar.lz yuzu-10c67bf39504aae36b06d4abe8055aaf6feeb2ad.tar.xz yuzu-10c67bf39504aae36b06d4abe8055aaf6feeb2ad.tar.zst yuzu-10c67bf39504aae36b06d4abe8055aaf6feeb2ad.zip |
-rw-r--r-- | src/core/hle/service/am/applet_oe.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp index f593840b3..7d16b45f3 100644 --- a/src/core/hle/service/am/applet_oe.cpp +++ b/src/core/hle/service/am/applet_oe.cpp @@ -67,6 +67,7 @@ public: {14, &ISelfController::SetRestartMessageEnabled, "SetRestartMessageEnabled"}, {16, &ISelfController::SetOutOfFocusSuspendingEnabled, "SetOutOfFocusSuspendingEnabled"}, + {40, &ISelfController::CreateManagedDisplayLayer, "CreateManagedDisplayLayer"}, }; RegisterHandlers(functions); } @@ -147,6 +148,19 @@ private: LOG_WARNING(Service, "(STUBBED) called"); } + void CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) { + // TODO(Subv): Find out how AM determines the display to use, for now just create the layer + // in the Default display. + u64 display_id = nvflinger->OpenDisplay("Default"); + u64 layer_id = nvflinger->CreateLayer(display_id); + + IPC::RequestBuilder rb{ctx, 4}; + rb.Push(RESULT_SUCCESS); + rb.Push(layer_id); + + LOG_WARNING(Service, "(STUBBED) called"); + } + std::shared_ptr<NVFlinger::NVFlinger> nvflinger; }; |