Commit Graph

169 Commits (master)

Author SHA1 Message Date
uramer 1675c74036 Fix findPath returning a raw vector 4 weeks ago
Evil Eye 6572122acc Use the right deserializer for unloaded scripts 2 months ago
uramer e248ba293a Use sol helpers for metatable keys 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
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 032d506aa7 Fix components_tests 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
Cody Glassman a53d002262 lua - add swizzling to vector types 5 months ago
Anton Uramer 6851e6e56a Context helpers for caching packages, split up core bindings into multiple caches, remove getRealFrameDuration in global context 5 months ago
psi29a 664a844853 Merge branch 'fix_get_angles_zyx' into 'master'
Fix getAnglesZYX (#7741)

Closes #7741

See merge request OpenMW/openmw!4199
6 months ago
Evil Eye ee653eb2b8 Make mwscript return nil for records that don't have a script 6 months ago
Kindi 624a4f46b5 dont use codecvt for utf8.char 6 months ago
psi29a 6754b8d941 Revert "Merge branch 'were_engineers_not_salt_miners' into 'master'"
This reverts merge request !4178
6 months ago
psi29a 9a864f309a Merge branch 'theluareloaded' into 'master'
Check the result of loading from bytecode

Closes #7787

See merge request OpenMW/openmw!4189
6 months ago
psi29a 456ac2a85b Merge branch 'were_engineers_not_salt_miners' into 'master'
FEAT: Lua Engine Handler for MWScript `startscript` functionality

See merge request OpenMW/openmw!4178
6 months ago
Dave Corley 1a79e79f57 FEAT: Lua Engine Handler for MWScript `startscript` functionality 6 months ago
psi29a d3c3d0cf44 Merge branch 'indexthemoon' into 'master'
Move Lua index helpers to components and make owner.factionRank match other ranks

See merge request OpenMW/openmw!4186
6 months ago
elsid 89a30532b7
Fix getAnglesZYX implementation 6 months ago
Evil Eye 5b82c7a95d Don't assume execution of an internal Lua script can't fail 6 months ago
Evil Eye 83e8729256 Check the result of loading from bytecode 6 months ago
Evil Eye d6fc0744c7 Move Lua index helpers to components and make owner.factiooRank match other ranks 6 months ago
Kindi d21f3809bd test utf8 7 months ago
Kindi 22d685eca3 ensure fitness 7 months ago
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 11 months ago
uramer dd6017e81e Avoid making engine handler methods public 12 months ago