nn::applet::CTR::PrepareToCloseApplication FunctionResult PrepareToCloseApplication( void );
None.
Prepares to exit a program.
This function loads the relevant data if the data has not been loaded when control transitions to the system side such as the HOME Menu.
Then call the nn::applet::CTR::CloseApplication function after this one to exit the program.
However, if this function's return value indicates failure, do not call nn::applet::CTR::CloseApplication.
Failure could be due to a bug in the program, the HOME Menu not existing, or some other development mistake.
CONFIDENTIAL