aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-11-20 14:59:19 -0500
committerShadowNinja <shadowninja@minetest.net>2014-11-20 15:37:20 -0500
commitc4e393deea4f1a6d242a3fdf392c463ed5a3b58d (patch)
tree4230e1af5eaaf697c1c61456d010f8e8f560c4e6 /src/script
parentd2b5ba83b00ce00ff34f627da02f4eb4ceb86412 (diff)
downloadminetest-c4e393deea4f1a6d242a3fdf392c463ed5a3b58d.tar.gz
minetest-c4e393deea4f1a6d242a3fdf392c463ed5a3b58d.tar.bz2
minetest-c4e393deea4f1a6d242a3fdf392c463ed5a3b58d.zip
Simplify loading of Android version of menu
Diffstat (limited to 'src/script')
-rw-r--r--src/script/cpp_api/s_base.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/cpp_api/s_base.cpp b/src/script/cpp_api/s_base.cpp
index 779819007..1f96373dc 100644
--- a/src/script/cpp_api/s_base.cpp
+++ b/src/script/cpp_api/s_base.cpp
@@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "filesys.h"
#include "log.h"
#include "mods.h"
+#include "porting.h"
#include "util/string.h"
@@ -98,6 +99,9 @@ ScriptApiBase::ScriptApiBase()
lua_pushstring(m_luastack, DIR_DELIM);
lua_setglobal(m_luastack, "DIR_DELIM");
+ lua_pushstring(m_luastack, porting::getPlatformName());
+ lua_setglobal(m_luastack, "PLATFORM");
+
m_server = NULL;
m_environment = NULL;
m_guiengine = NULL;