]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/cpp_api/s_base.cpp
Simplify loading of Android version of menu
[dragonfireclient.git] / src / script / cpp_api / s_base.cpp
index 7798190077f931ff2a2be25a21632f256c502ed7..1f96373dc922e35bbbd47372a07c9a581b167442 100644 (file)
@@ -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;