mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 08:22:04 +00:00
htc: finish last code for Main()
This commit is contained in:
parent
870b45f208
commit
1bd0094bee
2 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue