mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-29 10:28:02 +03:00
Fix MAKO::check_music()
This fixes infinite loop in the opening demo of Only You, waiting for the end of the music.
This commit is contained in:
@@ -70,7 +70,15 @@ void MAKO::stop_music()
|
||||
|
||||
bool MAKO::check_music()
|
||||
{
|
||||
return current_music != 0;
|
||||
if (!current_music)
|
||||
return false;
|
||||
if (fm) {
|
||||
int mark, loop;
|
||||
fm->get_mark(&mark, &loop);
|
||||
return !loop;
|
||||
}
|
||||
|
||||
return EM_ASM_INT_V( return xsystem35.cdPlayer.getPosition(); ) != 0;
|
||||
}
|
||||
|
||||
void MAKO::get_mark(int* mark, int* loop)
|
||||
|
||||
Reference in New Issue
Block a user