Skip to content

Commit

Permalink
Handle exit from home
Browse files Browse the repository at this point in the history
salir como si fuese un juego
  • Loading branch information
Kronos2308 committed Oct 2, 2021
1 parent ca3a563 commit 2f6e600
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ int main(int argc, char **argv)
try{
//Set main Thread get images and descriptions
Loaderthread = SDL_CreateThread(AnimeLoader, "Loaderthread", (void*)NULL);


//Handle forced exit
if (!AppletMode) appletLockExit();
//While application is running
while (!quit&&appletMainLoop())
{
Expand Down Expand Up @@ -1498,7 +1500,7 @@ int main(int argc, char **argv)
}

if(programationstate != statenow && isHandheld) {BACK.render(SCREEN_WIDTH - USER.getWidth() - BACK.getWidth() - 30, 1);}
B_P.render_T(140, 680,"Salir",quit);
//B_P.render_T(140, 680,"Salir",quit);
B_M.render_T(10, 680,"Música",(Mix_PausedMusic() == 1 || Mix_PlayingMusic() == 0));
SDL_SetRenderDrawBlendMode(GOD.gRenderer, SDL_BLENDMODE_BLEND);//enable alpha blend

Expand Down Expand Up @@ -1597,6 +1599,7 @@ int main(int argc, char **argv)
fsFsClose(&data);

accountExit();
appletUnlockExit ();
//if (!isConnected) appletRequestToSleep();
return 0;
}

0 comments on commit 2f6e600

Please sign in to comment.