From 41ef97585aa7a603c73dc192c41bb76b41bcf099 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Sun, 27 Oct 2019 05:03:57 -0400 Subject: [PATCH] Fixed the accessing of methods --- src/yuzu/configuration/configure_input.cpp | 4 ++-- src/yuzu/main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp index 781e4719af..2e0a5b240f 100644 --- a/src/yuzu/configuration/configure_input.cpp +++ b/src/yuzu/configuration/configure_input.cpp @@ -36,8 +36,8 @@ void OnDockedModeChanged(bool last_state, bool new_state) { // change to one and it will handle both automatically auto applet_oe = sm.GetService("appletOE"); auto applet_ae = sm.GetService("appletAE"); - bool is_notification_enabled = - Service::AM::ISelfController::GetOperationModeChangedNotification(); + auto isc = sm.GetService("ISelfController"); + bool is_notification_enabled = isc->GetOperationModeChangedNotification(); bool has_signalled = false; if (applet_oe != nullptr && is_notification_enabled) { diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 9d34063494..bda2894a34 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1914,8 +1914,8 @@ void GMainWindow::OnCaptureScreenshot() { auto& sm{Core::System::GetInstance().ServiceManager()}; auto applet_oe = sm.GetService("appletOE"); auto applet_ae = sm.GetService("appletAE"); - bool is_notification_enabled = - Service::AM::ISelfController::GetAlbumImageTakenNotificationEnabled(); + auto isc = sm.GetService("ISelfController"); + bool is_notification_enabled = isc->GetAlbumImageTakenNotificationEnabled(); bool has_signalled = false; if (applet_oe != nullptr && is_notification_enabled) { applet_oe->GetMessageQueue()->ScreenshotTaken();