From 2938aaf05c43f2f996c7142d7dd4c7270dfef41e Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Sun, 25 Jul 2021 15:36:25 +0200 Subject: [PATCH] Rename `API_VERSION` -> `API_REVISION` in Lua API. --- apps/openmw/mwlua/luabindings.cpp | 2 +- files/lua_api/openmw/core.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwlua/luabindings.cpp b/apps/openmw/mwlua/luabindings.cpp index ca800f2dd4..48174f55ee 100644 --- a/apps/openmw/mwlua/luabindings.cpp +++ b/apps/openmw/mwlua/luabindings.cpp @@ -31,7 +31,7 @@ namespace MWLua { auto* lua = context.mLua; sol::table api(lua->sol(), sol::create); - api["API_VERSION"] = 1; + api["API_REVISION"] = 1; api["sendGlobalEvent"] = [context](std::string eventName, const sol::object& eventData) { context.mGlobalEventQueue->push_back({std::move(eventName), LuaUtil::serialize(eventData, context.mSerializer)}); diff --git a/files/lua_api/openmw/core.lua b/files/lua_api/openmw/core.lua index 6b38fc20e1..040e6968dd 100644 --- a/files/lua_api/openmw/core.lua +++ b/files/lua_api/openmw/core.lua @@ -7,8 +7,8 @@ ------------------------------------------------------------------------------- --- The version of OpenMW Lua API. It is an integer that is incremented every time the API is changed. --- @field [parent=#core] #number API_VERSION +-- The revision of OpenMW Lua API. It is an integer that is incremented every time the API is changed. +-- @field [parent=#core] #number API_REVISION ------------------------------------------------------------------------------- -- Send an event to global scripts.