From 1bd0094bee8e06cccc14f0fab1225f12c89c9bc0 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 11 Feb 2021 05:51:03 -0800 Subject: [PATCH] htc: finish last code for Main() --- .../source/htc/server/htc_power_state_control.cpp | 4 ++++ stratosphere/htc/source/htc_main.cpp | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp b/libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp index cb2e2bfee..68297f208 100644 --- a/libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp +++ b/libraries/libstratosphere/source/htc/server/htc_power_state_control.cpp @@ -42,6 +42,10 @@ namespace ams::htc::server { g_is_suspended = false; } + void FinalizePowerStateMonitor() { + R_ABORT_UNLESS(g_pm_module.Finalize()); + } + void LoopMonitorPowerState() { /* Get the psc module's event pointer. */ auto *event = g_pm_module.GetEventPointer(); diff --git a/stratosphere/htc/source/htc_main.cpp b/stratosphere/htc/source/htc_main.cpp index 893a98e5a..a3e651a12 100644 --- a/stratosphere/htc/source/htc_main.cpp +++ b/stratosphere/htc/source/htc_main.cpp @@ -222,6 +222,8 @@ namespace ams::htc { namespace server { void InitializePowerStateMonitor(htclow::impl::DriverType driver_type, htclow::HtclowManager *htclow_manager); + void FinalizePowerStateMonitor(); + void LoopMonitorPowerState(); } @@ -297,7 +299,7 @@ int main(int argc, char **argv) os::DestroyThread(std::addressof(htc_ipc_thread)); /* Finalize psc monitor. */ - //htc::server::FinalizePowerStateMonitor(); + htc::server::FinalizePowerStateMonitor(); return 0; }