mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-17 10:19:23 +01:00
use aptMainLoop(). closes #9
This commit is contained in:
parent
38a2b11e86
commit
de27f5f5f5
@ -15,21 +15,9 @@ static void
|
|||||||
loop(int (*callback)(void))
|
loop(int (*callback)(void))
|
||||||
{
|
{
|
||||||
#ifdef _3DS
|
#ifdef _3DS
|
||||||
int rc;
|
while(aptMainLoop())
|
||||||
APP_STATUS status;
|
|
||||||
|
|
||||||
/* check apt status */
|
|
||||||
while((status = aptGetStatus()) != APP_EXITING)
|
|
||||||
{
|
{
|
||||||
rc = 0;
|
if(callback() == 0)
|
||||||
if(status == APP_RUNNING)
|
|
||||||
rc = callback();
|
|
||||||
else if(status == APP_SUSPENDING)
|
|
||||||
aptReturnToMenu();
|
|
||||||
else if(status == APP_SLEEPMODE)
|
|
||||||
aptWaitStatusEvent();
|
|
||||||
|
|
||||||
if(rc == 0)
|
|
||||||
console_render();
|
console_render();
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user