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@185 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
5af9d194d6
commit
65de673db2
@ -310,5 +310,12 @@ extern "C" void nnMain(void)
|
|||||||
s_RenderSystem.Clear();
|
s_RenderSystem.Clear();
|
||||||
s_RenderSystem.SwapBuffers();
|
s_RenderSystem.SwapBuffers();
|
||||||
nn::os::Thread::Sleep(nn::fnd::TimeSpan::FromMilliSeconds(10));
|
nn::os::Thread::Sleep(nn::fnd::TimeSpan::FromMilliSeconds(10));
|
||||||
|
|
||||||
|
if ( nn::applet::IsExpectedToCloseApplication() )
|
||||||
|
{
|
||||||
|
nn::applet::PrepareToCloseApplication();
|
||||||
|
nn::applet::CloseApplication();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user