Commit Graph

142 Commits (7d9d377575ff6aac58561c670c8716314386700a)

Author SHA1 Message Date
Alexei Kotov 6515fdd73f Handle zero length Lua storage files more gracefully (#7823) 9 months ago
Alexei Kotov 63276e0f1f Merge branch 'avoid_copy' into 'master'
Follow-up for YAML API

See merge request OpenMW/openmw!3961
9 months ago
psi29a af9f1b54da Merge branch 'lost-warnings' into 'master'
Fixes for a whole bunch of warnings

See merge request OpenMW/openmw!3950
9 months ago
Andrei Kortunov 2d3a8ca0fc Do not use an inner namespace 10 months ago
Andrei Kortunov cb831a5917 Add more includes just for sure 10 months ago
Andrei Kortunov 2523afe9c2 Use namespace instead of static class 10 months ago
Andrei Kortunov 8037ad7f00 Remove unused includes 10 months ago
Andrei Kortunov 4520ee465d Do not copy vector 10 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 715efe892f Load YAML files via Lua (feature 7590) 10 months ago
psi29a 03d5872a55 Merge branch 'drop_on_exit' into 'master'
Add a storage mode to drop section on game exit

See merge request OpenMW/openmw!3905
10 months ago
Andrei Kortunov ddd0945645 Add a storage mode to drop section on game exit 10 months ago
Andrei Kortunov cf6b6020a0 Move local variables 10 months ago
uramer 08b7ee8a44 Test LuaUtil::safeGet preventing crash 11 months ago
uramer 550659c2d9 Fix loadVFS error handling 11 months ago
uramer aa4303fc38 Fix crash when throwing in index meta methods 11 months ago
uramer 851e291501 Simplify and fix the storage subscribe test 11 months ago
uramer 35448bf0fe Fix crash when passing a non-callback table to a callback argument 11 months ago
Alexei Kotov 8b47381162 Merge branch 'more_move' into 'master'
Fix some Coverity Scan complaints

See merge request OpenMW/openmw!3829
11 months ago
Andrei Kortunov 225e834b88 Fix some Coverity Scan complaints 11 months ago
uramer 9cce2e39ba Merge branch 'master' into menuscripts 11 months ago
Andrei Kortunov 87c9f395f1 Move local variables in components 12 months ago
uramer dd6017e81e Avoid making engine handler methods public 12 months ago
uramer 2107bbc01d Reuse input engine handlers in menu scripts 12 months ago
uramer 962ecc4329 Allow menu scripts to read global sections while a game is loaded 12 months ago
uramer d1268acf95 Merge branch 'master' into menuscripts 12 months ago
uramer e9b48e35c0 Coverity defects 1 year ago
uramer 1d8ee7984f Make input.triggers[] consistent with input.actions[] 1 year ago
uramer 0e2e386dc9 Lua actions take 3 1 year ago
Devin Alexander Torres 8161771969 Add sol::lib::jit to actually enable JIT 1 year ago
uramer c9eaeb47d5 Minor API inconsistencies 1 year ago
Petr Mikheev f5325e11e3 Rename mPermanentCallbacks -> mMenuScriptsCallbacks in LuaUtil::Storage 1 year ago
Petr Mikheev 1dd7a15255 Draft: add new type of Lua scripts - menu scripts 1 year ago
Kindi c77b88cd38 fix string format 1 year ago
Andrei Kortunov a849a053be Do not copy vector 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
Kindi 7eb456a169 refactoring for readability 1 year ago
Kindi 8798217b51 remove const keyword from all string_view 1 year ago
Kindi db287b2bc6 dont use pass by const reference for small types in func arguments 1 year ago
Kindi dd61caa96d using misc::stringutils::format and simplify relativeposition function 1 year ago
Kindi af58b531da change function names and add documentation in overview.rst 1 year ago
Kindi 532230254b add documentation 1 year ago
Kindi 92842cedf5 len,codepoint,offset 1 year ago
Petr Mikheev 87eacf774a Control GUI modes from Lua 1 year ago
Petr Mikheev f86a45d60a [Lua] add __len metafunction for readonly objects 1 year ago
Kindi 6d02c31720 utf8.codes 1 year ago
Kindi d9c102e14d utf8.char 1 year ago
Kindi 8622a6da3b luautf8lib 1 year ago
Andrei Kortunov f5b18d2d5d Do not copy objects twice where possible 1 year ago
elsid 5a0ad8cdd7
Add Morrowind specific tests 1 year ago