Commit Graph

44 Commits (8cb5f2a5673165d732790e6440e9cd90b71074d4)

Author SHA1 Message Date
uramer e248ba293a Use sol helpers for metatable keys 2 months ago
elsid 32ec92e71c
Use normalized path in LuaState 4 months ago
psi29a b3677d07fd Merge branch 'pcallallthethings' into 'master'
Wrap all memory allocating Lua functions in protected calls

Closes #8099

See merge request OpenMW/openmw!4336
4 months ago
Evil Eye c9783344a0 Wrap all memory allocating Lua functions in protected calls 4 months ago
Evil Eye aa808d63bc Return nullptr straight away 4 months ago
Evil Eye 4652151630 Don't assume realloc always succeeds 4 months ago
Evil Eye 83e8729256 Check the result of loading from bytecode 6 months ago
uramer 550659c2d9 Fix loadVFS error handling 11 months ago
uramer 851e291501 Simplify and fix the storage subscribe test 11 months ago
Devin Alexander Torres 8161771969 Add sol::lib::jit to actually enable JIT 1 year ago
psi29a 0b74146b05
Merge branch 'luautflib' into 'master'
Lua utf-8 support

Closes #6505

See merge request OpenMW/openmw!3327
1 year ago
Petr Mikheev f86a45d60a [Lua] add __len metafunction for readonly objects 1 year ago
Kindi 8622a6da3b luautf8lib 1 year ago
psi29a cdc753df70 Merge branch 'lua_refactoring' into 'master'
MWLua refactoring

See merge request OpenMW/openmw!2956
2 years ago
Petr Mikheev 4562b8c06b Add headers for all `.cpp` files in mwlua; move packages initilaization from LuaManager to luabindings.cpp 2 years ago
Petr Mikheev 61578ca39b Add function LuaUtil::cast 2 years ago
Petr Mikheev 7b3aa621a4 [Lua] Fix memory leak in sandboxed "require". 2 years ago
Petr Mikheev d0a82437a4 [Lua] Fix memory tracking 2 years ago
Petr Mikheev b71eac3e76 Fix #7210 2 years ago
Petr Mikheev 55db95d4cf Update Lua profiler; add ability to run OpenMW with old LuaJit that doesn't allow custom allocator (Lua profiler will be disabled in this case) 2 years ago
Petr Mikheev 6fa65e4729 Track memory and CPU usage per script in LuaUtil::LuaState 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Project579 a13709c510 Replace implicit convertions from std::filesystem::path to std::string with correctly converting functions. 2 years ago
Project579 e5c417c968 Make sure all paths are passed as std::filesystem::path instead of std::string where possible. 2 years ago
ζeh Matt 764d34362e
Type forward VFS::Manager in luastate.hpp and l10n.hpp 2 years ago
uramer 22994af728 Fix Lua pairs and ipairs 3 years ago
Petr Mikheev 7ccbf95503 [Lua] makeStrictReadOnly for enums 3 years ago
Petr Mikheev 70c7f1880d [Lua] pairs and ipairs for ObjectList (resolves #6732) 3 years ago
Petr Mikheev 45c9635e94 Fix getmetatable, fix pairsForReadonly, add util.loadCode, _G 3 years ago
Petr Mikheev eca64b48e8 Bitwise operations in Lua 3 years ago
uramer a1abc84f59 Implement pairs and ipairs for ui.content and ui.layers. Document all iterable types in a uniform way. 3 years ago
Petr Mikheev 6876851766 Allow `require` to return not a table in Lua 3 years ago
Petr Mikheev a294adcdaf Proper support of `pairs` and `ipairs` in Lua; fix bug in `makeReadOnly`. 3 years ago
Petr Mikheev 2d1b100239 Change terminology of gameSecond/gameHour to simulationTime/gameTime 3 years ago
Petr Mikheev 6a19a66ae5 Fix #6535 3 years ago
Petr Mikheev 0f246e7365 Use a separate instance of Lua i18n for every context 3 years ago
Petr Mikheev 7549496162 A few small fixes + expose makeReadOnly to Lua + an option to apply makeReadOnly during deserialize 3 years ago
Petr Mikheev 9adc190209 Redesign LuaUtil::ScriptsContainer to work with ScriptsConfiguration 3 years ago
Petr Mikheev 2f25257a3e Move LuaState::makeReadOnly(sol::table) out of the class because it doesn't need to access LuaState internals. 3 years ago
Petr Mikheev 33d4d88447 Function LuaUtil::toString 3 years ago
Petr Mikheev a94072243b Lua command `core.quit` 3 years ago
Petr Mikheev 8ff8ec4abd Fix coverity issues 4 years ago
Petr Mikheev 702eb19271 Fixes and refactoring 4 years ago
Petr Mikheev 4b068b27ca Add components/lua/luastate and components/lua/utilpackage 4 years ago