Fix bugs found by asmwalk/semdiff, add luaL_error returns, typed template tags

- luaB_getfenv: look up __environment metafield like 12340
- DSPSfxReverb::setParameterInternal: set mUpdate for REFLECTIONSLEVEL and REVERBLEVEL
- CGGameUI::DestroyTotem, Script_SetTotem: test the totem GUID, not unk_0004
- Missing return 0 after luaL_error in script functions
- OFFSET tags of template instances carry their instance type: [0xXXXXXX<Type>]

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Saty
2026-10-03 10:11:32 +02:00
co-authored by Claude Opus 5.5
parent 312ab9ac65
commit 2fc01591aa
68 changed files with 603 additions and 83 deletions
@@ -82,6 +82,7 @@ static int32_t Script_SetModel(lua_State* L) {
if (!model->m_model) {
luaL_error(L, "Invalid model file: %s", fileName);
return 0;
}
return 0;