Display a warning if the game's version is incompatible.

This commit is contained in:
Bart van Strien
2011-10-03 00:52:44 +02:00
parent bd2172f826
commit 4f70742875
3 changed files with 102 additions and 2 deletions
+7
View File
@@ -95,6 +95,13 @@ extern "C" LOVE_EXPORT int luaopen_love(lua_State * L)
lua_pushstring(L, love::VERSION);
lua_setfield(L, -2, "_version");
lua_pushnumber(L, love::VERSION_MAJOR);
lua_setfield(L, -2, "_version_major");
lua_pushnumber(L, love::VERSION_MINOR);
lua_setfield(L, -2, "_version_minor");
lua_pushnumber(L, love::VERSION_REV);
lua_setfield(L, -2, "_version_revision");
lua_pushstring(L, love::VERSION_CODENAME);
lua_setfield(L, -2, "_version_codename");