From b89ed4e151e6ef49683722cc123403b53285a43d Mon Sep 17 00:00:00 2001 From: 0O0o0oOoO00 <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Sat, 6 Sep 2025 14:58:47 +0800 Subject: [PATCH] fix: hook game setting panel in the same lua_pcall thread --- blcrack/cracker/ui/hook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blcrack/cracker/ui/hook.cpp b/blcrack/cracker/ui/hook.cpp index 14fdcd65a..0b51f0707 100644 --- a/blcrack/cracker/ui/hook.cpp +++ b/blcrack/cracker/ui/hook.cpp @@ -153,7 +153,7 @@ int (*old_lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); int my_lua_pcall (lua_State *L, int nargs, int nresults, int errfunc) { auto ret = old_lua_pcall(L, nargs, nresults, errfunc); if (g_is_panel_loaded && !g_is_game_loaded && g_target_L == L) { - std::thread(hook_game_setting_panel, L).detach(); + hook_game_setting_panel(L); g_is_game_loaded = true; } return ret;