From e7a11be6aad5fe0f1e6bccda51a2be48fab38a6e Mon Sep 17 00:00:00 2001 From: VDm Date: Sun, 25 Feb 2024 14:52:51 +0400 Subject: [PATCH] chore(script): temporary fix GetNumOutputDrivers to eliminate loading errors --- src/sound/SI2Script.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sound/SI2Script.cpp b/src/sound/SI2Script.cpp index d358bcd..3d4ed6e 100644 --- a/src/sound/SI2Script.cpp +++ b/src/sound/SI2Script.cpp @@ -21,7 +21,8 @@ int32_t Script_StopMusic(lua_State* L) { } int32_t Script_Sound_GameSystem_GetNumInputDrivers(lua_State* L) { - WHOA_UNIMPLEMENTED(0); + lua_pushnumber(L, 0.0); + return 1; } int32_t Script_Sound_GameSystem_GetInputDriverNameByIndex(lua_State* L) { @@ -29,7 +30,10 @@ int32_t Script_Sound_GameSystem_GetInputDriverNameByIndex(lua_State* L) { } int32_t Script_Sound_GameSystem_GetNumOutputDrivers(lua_State* L) { - WHOA_UNIMPLEMENTED(0); + // TODO: + // NumOutputDrivers = (double)(int)SE3::GetNumOutputDrivers(SE3::sm_pGameSystem, v3); + lua_pushnumber(L, 0.0); + return 1; } int32_t Script_Sound_GameSystem_GetOutputDriverNameByIndex(lua_State* L) {