aboutsummaryrefslogtreecommitdiff
path: root/src/script/scripting_mainmenu.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-08-28 12:15:12 +0200
committerGitHub <noreply@github.com>2021-08-28 12:15:12 +0200
commit6a1424f2b18520f40ba8cfd12f7988f6b33db9a6 (patch)
tree081e49b5f47693cddae8ba6c921cb6c3041b7731 /src/script/scripting_mainmenu.h
parent0f8a6d78a72731833664b09695bd44471bc014ac (diff)
downloadminetest-6a1424f2b18520f40ba8cfd12f7988f6b33db9a6.tar.gz
minetest-6a1424f2b18520f40ba8cfd12f7988f6b33db9a6.tar.bz2
minetest-6a1424f2b18520f40ba8cfd12f7988f6b33db9a6.zip
Async-related script cleanups
Diffstat (limited to 'src/script/scripting_mainmenu.h')
-rw-r--r--src/script/scripting_mainmenu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/script/scripting_mainmenu.h b/src/script/scripting_mainmenu.h
index 9e23bdc1b..3c329654a 100644
--- a/src/script/scripting_mainmenu.h
+++ b/src/script/scripting_mainmenu.h
@@ -38,8 +38,9 @@ public:
void step();
// Pass async events from engine to async threads
- unsigned int queueAsync(const std::string &serialized_func,
- const std::string &serialized_params);
+ u32 queueAsync(std::string &&serialized_func,
+ std::string &&serialized_param);
+
private:
void initializeModApi(lua_State *L, int top);
static void registerLuaClasses(lua_State *L, int top);