diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-06-22 14:40:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 14:40:04 +0100 |
commit | 4cb18d4874126b384ad5faa1b10a208c8fdce4db (patch) | |
tree | 87d63f83706f7e0fca617a0d0b10ea7446d26125 /src/script/lua_api | |
parent | e99415e0c5ae4a89907424d0f5f9f48ab94efbfa (diff) | |
download | minetest-4cb18d4874126b384ad5faa1b10a208c8fdce4db.tar.gz minetest-4cb18d4874126b384ad5faa1b10a208c8fdce4db.tar.bz2 minetest-4cb18d4874126b384ad5faa1b10a208c8fdce4db.zip |
Fix HTTP API not being available in async mainmenu (#10086)
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_http.cpp | 7 | ||||
-rw-r--r-- | src/script/lua_api/l_http.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/script/lua_api/l_http.cpp b/src/script/lua_api/l_http.cpp index 73b4586e0..ec43bf174 100644 --- a/src/script/lua_api/l_http.cpp +++ b/src/script/lua_api/l_http.cpp @@ -230,3 +230,10 @@ void ModApiHttp::Initialize(lua_State *L, int top) #endif } + +void ModApiHttp::InitializeAsync(lua_State *L, int top) +{ +#if USE_CURL + API_FCT(get_http_api); +#endif +} diff --git a/src/script/lua_api/l_http.h b/src/script/lua_api/l_http.h index c665235a9..de6e51b37 100644 --- a/src/script/lua_api/l_http.h +++ b/src/script/lua_api/l_http.h @@ -50,4 +50,5 @@ private: public: static void Initialize(lua_State *L, int top); + static void InitializeAsync(lua_State *L, int top); }; |