Update main.c

This commit is contained in:
jonyluke 2019-04-07 15:42:53 +02:00 committed by GitHub
parent 06eff93189
commit 277dc31209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,9 +45,8 @@ int main(int argc, char* argv[])
if (kDown & KEY_PLUS)
break; // break in order to return to hbmenu
if (kDown & KEY_A){
if (kDown & KEY_A)
Mix_PlayMusic(audio, 1); //Play the audio file
}
// Update the console, sending a new frame to the display
consoleUpdate(NULL);
@ -62,4 +61,4 @@ int main(int argc, char* argv[])
// Deinitialize and clean up resources used by the console (important!)
consoleExit(NULL);
return 0;
}
}