mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +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;
|
||||
}
|
||||
|
||||
void FinalizePowerStateMonitor() {
|
||||
R_ABORT_UNLESS(g_pm_module.Finalize());
|
||||
}
|
||||
|
||||
void LoopMonitorPowerState() {
|
||||
/* Get the psc module's event pointer. */
|
||||
auto *event = g_pm_module.GetEventPointer();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue