MCPcopy Create free account
hub / github.com/OpenMW/openmw / getReadOnly

Method getReadOnly

components/lua/storage.cpp:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 sol::object LuaStorage::Value::getReadOnly(lua_State* state) const
38 {
39 if (mReadOnlyValue == sol::nil && !mSerializedValue.empty())
40 mReadOnlyValue = sol::main_object(deserialize(state, mSerializedValue, nullptr, true));
41 return mReadOnlyValue;
42 }
43
44 const LuaStorage::Value& LuaStorage::Section::get(std::string_view key) const
45 {

Callers 1

initLuaBindingsMethod · 0.80

Calls 2

deserializeFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected