mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 12:44:02 +00:00
EMI: Parse the first parameter of ImPushState.
This fixes the credits music not playing in the main menu.
This commit is contained in:
parent
4670ee3508
commit
c4decc05c5
@ -590,7 +590,16 @@ void Lua_V2::StopAllSounds() {
|
||||
}
|
||||
|
||||
void Lua_V2::ImPushState() {
|
||||
lua_Object stateObj = lua_getparam(1);
|
||||
//lua_Object unknownBoolObj = lua_getparam(2);
|
||||
|
||||
g_sound->pushState();
|
||||
|
||||
if (lua_isnumber(stateObj)) {
|
||||
int state = (int)lua_getnumber(stateObj);
|
||||
g_imuseState = state;
|
||||
}
|
||||
|
||||
Debug::debug(Debug::Sound | Debug::Scripts, "Lua_V2::ImPushState: currently guesswork");
|
||||
}
|
||||
void Lua_V2::ImPopState() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user