mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
Display a warning if the game's version is incompatible.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user