From 594e95084beff1f7829b5db8c9f28801a127caa1 Mon Sep 17 00:00:00 2001 From: N00byKing Date: Fri, 6 Apr 2018 16:32:17 +0200 Subject: [PATCH] shared_page: Set 3D Slider --- src/core/hle/shared_page.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cpp index 11184deea5..20780c2239 100644 --- a/src/core/hle/shared_page.cpp +++ b/src/core/hle/shared_page.cpp @@ -8,6 +8,7 @@ #include "core/core_timing.h" #include "core/hle/service/ptm/ptm.h" #include "core/hle/shared_page.h" +#include "core/settings.h" //////////////////////////////////////////////////////////////////////////////////////////////////// @@ -83,6 +84,10 @@ void Init() { update_time_event = CoreTiming::RegisterEvent("SharedPage::UpdateTimeCallback", UpdateTimeCallback); CoreTiming::ScheduleEvent(0, update_time_event); + + float_le slidestate = + Settings::values.toggle_3d ? (float_le)Settings::values.factor_3d / 100 : 0.0f; + shared_page.sliderstate_3d = slidestate; } void SetMacAddress(const MacAddress& addr) {