Commit Graph

31 Commits (master)

Author SHA1 Message Date
Evil Eye 6572122acc Use the right deserializer for unloaded scripts 2 months ago
Evil Eye 68ebefc2dd Fix Lua memory usage 2 months ago
elsid b4f77e8bd7
Store Lua script path as VFS normalized 3 months ago
elsid 32ec92e71c
Use normalized path in LuaState 4 months ago
Evil Eye 032d506aa7 Fix components_tests 4 months ago
Evil Eye c9783344a0 Wrap all memory allocating Lua functions in protected calls 4 months ago
AnyOldName3 28131fd62b Fixes for a whole bunch of warnings
These warnings were always enabled, but we didn't see them due to https://gitlab.com/OpenMW/openmw/-/issues/7882.
I do not fully understand the cause of 7822 as I can't repro it in a minimal CMake project.

Some of these fixes are thought through.
Some are sensible best guesses.
Some are kind of a stab in the dark as I don't know whether there was a
possible bug the warning was telling me about that I've done nothing to
help by introducing a static_cast.

Nearly all of these warnings were about some kind of narrowing
conversion, so I'm not sure why they weren't firing with GCC and Clang,
which have -Wall -Wextra -pedantic set, which should imply -Wnarrowing,
and they can't have been affected by 7882.

There were also some warnings being triggered from Boost code.
The vast majority of library headers that do questionable things weren't
firing warnings off, but for some reason, /external:I wasn't putting
these Boost headers into external mode.

We need these warnings dealt with one way or another so we can switch
the default Windows CI from MSBuild (which doesn't do ccache) to Ninja
(which does).
I have the necessary magic for that on a branch, but the branch won't
build because of these warnings.
10 months ago
Andrei Kortunov 225e834b88 Fix some Coverity Scan complaints 11 months ago
Petr Mikheev 87eacf774a Control GUI modes from Lua 1 year ago
Andrei Kortunov f5b18d2d5d Do not copy objects twice where possible 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 c362b2efa6 Use LuaUtil::cast for casting sol::object to prevent crashing on type mismatch in Lua scripts. 2 years ago
Petr Mikheev d9e9db0983 Additional information in Lua profiler 2 years ago
Petr Mikheev b248c3e173 Allow passing `initData` to the :addSript call (#7091) 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
uramer a2fa1fe0a5 Execute async callbacks on the main Lua stack 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Petr Mikheev a70d5831c5 Lua scripts configuration in omwaddon 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 f9136d4392 Support multiple arguments in Lua callbacks. 3 years ago
Petr Mikheev e7ec89573e Refactoring. Lua `Callback` is moved from apps/openmw/mwlua to components/lua. 3 years ago
Petr Mikheev 4ec7f0625e Store Lua timers in std::map rather than in sol::table. 3 years ago
Petr Mikheev 9adc190209 Redesign LuaUtil::ScriptsContainer to work with ScriptsConfiguration 3 years ago
Petr Mikheev 24ecdc37a7 Fix crash in LuaUtil::ScriptsContainer::~ScriptsContainer() 3 years ago
Petr Mikheev fb3917fc1a Lua callbacks 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 702eb19271 Fixes and refactoring 4 years ago
Petr Mikheev 479856f812 Add components/lua/scriptscontainer and components/esm/luascripts 4 years ago