mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Add headers for all .cpp
files in mwlua; move packages initilaization from LuaManager to luabindings.cpp
This commit is contained in:
parent
fe48348486
commit
4562b8c06b
22 changed files with 214 additions and 117 deletions
|
@ -35,7 +35,7 @@ namespace LuaUtil
|
|||
|
||||
void ScriptsContainer::addPackage(std::string packageName, sol::object package)
|
||||
{
|
||||
mAPI.emplace(std::move(packageName), makeReadOnly(std::move(package)));
|
||||
mAPI.insert_or_assign(std::move(packageName), makeReadOnly(std::move(package)));
|
||||
}
|
||||
|
||||
bool ScriptsContainer::addCustomScript(int scriptId, std::string_view initData)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue