From c2280ada1da35516e8b7a253f9ac3bf371226b61 Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Tue, 13 Apr 2021 01:16:06 +0200 Subject: [PATCH] OpenMW Lua, API_VERSION=0 --- CHANGELOG.md | 1 + apps/openmw/mwlua/luabindings.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50de808c29..7cd9bdbba4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Bug #6143: Capturing a screenshot makes engine to be a temporary unresponsive Feature #2780: A way to see current OpenMW version in the console Feature #5489: MCP: Telekinesis fix for activators + Feature #5996: Support Lua scripts in OpenMW Feature #6017: Separate persistent and temporary cell references when saving 0.47.0 diff --git a/apps/openmw/mwlua/luabindings.cpp b/apps/openmw/mwlua/luabindings.cpp index f48f78fe38..ebb24401fc 100644 --- a/apps/openmw/mwlua/luabindings.cpp +++ b/apps/openmw/mwlua/luabindings.cpp @@ -31,6 +31,7 @@ namespace MWLua { auto* lua = context.mLua; sol::table api(lua->sol(), sol::create); + api["API_VERSION"] = 0; api["sendGlobalEvent"] = [context](std::string eventName, const sol::object& eventData) { context.mGlobalEventQueue->push_back({std::move(eventName), LuaUtil::serialize(eventData, context.mSerializer)});