mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
アプレットが電源ボタンで終了したらシャットダウンするように
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@469 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
33771ff869
commit
7e7758a037
@ -212,7 +212,7 @@ extern "C" void nnMain()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// TODO:失敗したのでエラー表示を続ける
|
// 失敗したのでエラー表示を続ける
|
||||||
NotifyFailed(0);
|
NotifyFailed(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,6 +221,13 @@ extern "C" void nnMain()
|
|||||||
nn::applet::PrepareToCloseApplication();
|
nn::applet::PrepareToCloseApplication();
|
||||||
nn::applet::CloseApplication();
|
nn::applet::CloseApplication();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nn::applet::IsExpectedToProcessPowerButton())
|
||||||
|
{
|
||||||
|
NotifyFinished();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
nn::os::Thread::Sleep(nn::fnd::TimeSpan::FromMilliSeconds(16));
|
nn::os::Thread::Sleep(nn::fnd::TimeSpan::FromMilliSeconds(16));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user