mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Patch highlighted mod on crash screen
This commit is contained in:
parent
f8f0b376f2
commit
261dfe0d76
2 changed files with 2 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ int smlua_call_hook(lua_State* L, int nargs, int nresults, int errfunc, struct M
|
||||||
struct Mod* prev = gLuaActiveMod;
|
struct Mod* prev = gLuaActiveMod;
|
||||||
gLuaActiveMod = activeMod;
|
gLuaActiveMod = activeMod;
|
||||||
gLuaLastHookMod = activeMod;
|
gLuaLastHookMod = activeMod;
|
||||||
|
gPcDebug.lastModRun = activeMod;
|
||||||
|
|
||||||
lua_profiler_start_counter(activeMod);
|
lua_profiler_start_counter(activeMod);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ static void smlua_sync_table_call_hook(int syncTableIndex, int keyIndex, int pre
|
||||||
struct Mod* prev = gLuaActiveMod;
|
struct Mod* prev = gLuaActiveMod;
|
||||||
gLuaActiveMod = mod;
|
gLuaActiveMod = mod;
|
||||||
gLuaLastHookMod = mod;
|
gLuaLastHookMod = mod;
|
||||||
gPcDebug.lastModRun = gLuaActiveMod;
|
gPcDebug.lastModRun = mod;
|
||||||
if (0 != smlua_pcall(L, 3, 0, 0)) {
|
if (0 != smlua_pcall(L, 3, 0, 0)) {
|
||||||
LOG_LUA_LINE("Failed to call the hook_on_changed callback");
|
LOG_LUA_LINE("Failed to call the hook_on_changed callback");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue