mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-07-01 01:12:13 +02:00
Update main.c
This commit is contained in:
parent
06eff93189
commit
277dc31209
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user