The-Powder-Toy/src/lua
Tamás Bálint Misius 2d7b40b9e5
Prevent Lua callbacks from being called from secondary SaveRenderers
SaveRenderers populate their own Simulation with Simulation::Load, which may call various callbacks now that these SaveRenderers know about custom elements. Make sure these callbacks don't try to call into the main thread's Lua state.

Seeing as these callbacks now need to be protected from races too, the scopes of some of the exclusive locks of the graphics property mutex needed to be extended.
2023-12-09 16:37:50 +01:00
..
luascripts Fix, Deprecate, Remove, and Replace tpt.element_func / tpt.graphics_func 2022-06-04 22:16:45 -04:00
CommandInterface.cpp Preprocessor purge round 17: easy parts of WIN, LIN, MACOSX, AND 2023-01-27 09:26:41 +01:00
CommandInterface.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
LegacyLuaAPI.cpp Move graphics cache to SimulationData 2023-12-09 09:51:41 +01:00
LuaBit.cpp Preprocessor purge round 10: LUACONSOLE 2023-01-27 09:26:39 +01:00
LuaBit.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
LuaButton.cpp Fix crash from Lua prompts when exiting the game completely 2023-09-14 19:58:59 +02:00
LuaButton.h Fix Lua reference leaks (fixes #638) 2019-04-09 15:28:40 +02:00
LuaCheckbox.cpp Fix crash from Lua prompts when exiting the game completely 2023-09-14 19:58:59 +02:00
LuaCheckbox.h Fix Lua reference leaks (fixes #638) 2019-04-09 15:28:40 +02:00
LuaCompat.c Fix 8-bit-uncleanliness of most of the Lua API 2022-08-22 19:42:51 +02:00
LuaCompat.h Preprocessor purge round 7: Config.template.h 2023-01-27 09:26:38 +01:00
LuaComponent.cpp Remove unnecessary lua_pushlightuserdata usage, use commandInterface global instead 2023-10-24 22:12:16 -04:00
LuaComponent.h Fix missing delete commandInterface, fix gc issue with LuaComponent/LuaWindow 2021-09-02 23:31:30 -04:00
LuaHttp.cpp Use name-value pairs for HTTP post data and headers 2023-08-22 00:26:32 +02:00
LuaHttp.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
LuaLabel.cpp Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
LuaLabel.h New SConscript (hopefully better) 2014-06-08 19:33:58 -04:00
LuaLuna.h Use method indices as LuaLuna thunk upvalues 2023-10-25 15:25:54 +02:00
LuaProgressBar.cpp Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
LuaProgressBar.h New SConscript (hopefully better) 2014-06-08 19:33:58 -04:00
LuaScriptHelper.h Emscripten: Remove direct blocking prompt calls from Lua 2023-08-22 00:26:31 +02:00
LuaScriptInterface.cpp Prevent Lua callbacks from being called from secondary SaveRenderers 2023-12-09 16:37:50 +01:00
LuaScriptInterface.h Make Lua hook timeout configurable 2023-10-03 18:25:34 +02:00
LuaSDLKeys.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
LuaSlider.cpp Fix crash from Lua prompts when exiting the game completely 2023-09-14 19:58:59 +02:00
LuaSlider.h Fix Lua reference leaks (fixes #638) 2019-04-09 15:28:40 +02:00
LuaSmartRef.cpp Fix crash from Lua prompts when exiting the game completely 2023-09-14 19:58:59 +02:00
LuaSmartRef.h Fix crash from Lua prompts when exiting the game completely 2023-09-14 19:58:59 +02:00
LuaSocket.cpp Preprocessor purge round 17: easy parts of WIN, LIN, MACOSX, AND 2023-01-27 09:26:41 +01:00
LuaSocket.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
LuaSocketDefault.cpp Preprocessor purge round 17: easy parts of WIN, LIN, MACOSX, AND 2023-01-27 09:26:41 +01:00
LuaSocketTCPHttp.cpp Group request manager files into their own directory 2023-01-27 23:04:30 +01:00
LuaSocketTCPNoHttp.cpp Preprocessor purge round 14: NOHTTP 2023-01-27 09:26:40 +01:00
LuaSocketWindows.cpp Preprocessor purge round 17: easy parts of WIN, LIN, MACOSX, AND 2023-01-27 09:26:41 +01:00
LuaTextbox.cpp Fix crash from Lua prompts when exiting the game completely 2023-09-14 19:58:59 +02:00
LuaTextbox.h Fix Lua reference leaks (fixes #638) 2019-04-09 15:28:40 +02:00
LuaWindow.cpp Remove unnecessary lua_pushlightuserdata usage, use commandInterface global instead 2023-10-24 22:12:16 -04:00
LuaWindow.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
meson.build More boolean.to_string() fixes in meson.builds 2023-08-22 00:26:34 +02:00
PlainCommandInterface.cpp Hide CommandInterface creation behind a factory 2023-01-27 09:26:39 +01:00
TPTScriptInterface.cpp Enable basic rendering of custom elements in secondary Renderers 2023-12-08 22:40:44 +01:00
TPTScriptInterface.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00
TPTSTypes.cpp Migrate AnyType to std::variant 2022-12-23 12:15:28 +01:00
TPTSTypes.h Preprocessor purge round 19: Split and minimize usage of Config.h 2023-01-27 09:27:32 +01:00