1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-09-20 05:53:24 +01:00

htc: finish last code for Main()

This commit is contained in:
Michael Scire 2021-02-11 05:51:03 -08:00 committed by SciresM
parent 870b45f208
commit 1bd0094bee
2 changed files with 7 additions and 1 deletions

View file

@ -42,6 +42,10 @@ namespace ams::htc::server {
g_is_suspended = false; g_is_suspended = false;
} }
void FinalizePowerStateMonitor() {
R_ABORT_UNLESS(g_pm_module.Finalize());
}
void LoopMonitorPowerState() { void LoopMonitorPowerState() {
/* Get the psc module's event pointer. */ /* Get the psc module's event pointer. */
auto *event = g_pm_module.GetEventPointer(); auto *event = g_pm_module.GetEventPointer();

View file

@ -222,6 +222,8 @@ namespace ams::htc {
namespace server { namespace server {
void InitializePowerStateMonitor(htclow::impl::DriverType driver_type, htclow::HtclowManager *htclow_manager); void InitializePowerStateMonitor(htclow::impl::DriverType driver_type, htclow::HtclowManager *htclow_manager);
void FinalizePowerStateMonitor();
void LoopMonitorPowerState(); void LoopMonitorPowerState();
} }
@ -297,7 +299,7 @@ int main(int argc, char **argv)
os::DestroyThread(std::addressof(htc_ipc_thread)); os::DestroyThread(std::addressof(htc_ipc_thread));
/* Finalize psc monitor. */ /* Finalize psc monitor. */
//htc::server::FinalizePowerStateMonitor(); htc::server::FinalizePowerStateMonitor();
return 0; return 0;
} }