mirror of
https://github.com/MiSTer-devel/InputTest_MiSTer.git
synced 2026-05-17 03:03:52 +00:00
Fix music stop and restart when entering/exiting zorblaxx
This commit is contained in:
Binary file not shown.
@@ -636,6 +636,13 @@ void game_loop()
|
||||
}
|
||||
}
|
||||
|
||||
void quit_zorblaxx(){
|
||||
stop_music();
|
||||
clear_tilemap();
|
||||
clear_chars(0);
|
||||
clear_sprites();
|
||||
}
|
||||
|
||||
void app_zorblaxx()
|
||||
{
|
||||
setup_variables();
|
||||
@@ -647,6 +654,7 @@ void app_zorblaxx()
|
||||
clear_sprites();
|
||||
if (pleaseStop)
|
||||
{
|
||||
quit_zorblaxx();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -662,9 +670,11 @@ void app_zorblaxx()
|
||||
clear_sprites();
|
||||
if (pleaseStop)
|
||||
{
|
||||
quit_zorblaxx();
|
||||
return;
|
||||
}
|
||||
|
||||
game_loop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,4 +52,6 @@ void stop_music()
|
||||
{
|
||||
// Send stop command
|
||||
musicram[0] = 3;
|
||||
// Reset last played track
|
||||
music_last_played = 255;
|
||||
}
|
||||
Reference in New Issue
Block a user