Evil Eye
fdbcada044
Don't accept table like objects in getFieldOrNil
2025-12-09 11:48:02 +01:00
Alexei Kotov
cd4901245e
Merge branch 'vfs_normalized_path_25' into 'master'
...
Use normalized path for correctResourcePath and related functions (#8138 )
See merge request OpenMW/openmw!5031
2025-12-09 09:44:50 +03:00
elsid
878f9f8433
Add extension path type
2025-12-08 20:38:23 +01:00
elsid
b5196b2fd1
Use normalized path for correctResourcePath and related functions
2025-12-08 20:38:15 +01:00
Alexei Kotov
ee9d7db3c1
Merge branch 'gmstl10n' into 'master'
...
Allow composition of GMST l10n values
See merge request OpenMW/openmw!4873
2025-12-07 14:02:12 +03:00
elsid
66923870da
Use normalized path to implement correctResourcePath
2025-12-06 00:12:43 +01:00
elsid
1b362140ae
Remove duplicated and leading slashes in normalizeFilenameInPlace
...
To be consistent with correctResourcePath.
2025-12-06 00:12:43 +01:00
elsid
96869fd9b9
Add namespace prefix to all VFS::Path related tests
2025-12-06 00:12:42 +01:00
elsid
538e5d5502
Use normalizeFilename in correctResourcePath
2025-12-06 00:12:42 +01:00
elsid
cd03de2577
Cleanup resource helpers tests
2025-12-06 00:12:42 +01:00
Evil Eye
bb4937f827
Allow composition of GMST l10n values
2025-11-24 19:33:28 +01:00
elsid
7e1c1e8625
Use proper type for bhkRagdollTemplate::mBones
2025-11-23 13:21:41 +01:00
Alexei Kotov
b49b048f72
Merge branch 'warn-baby-warn-warning-inferno' into 'master'
...
Warning inferno - fix warnings, then fix warnings
Closes #8674
See merge request OpenMW/openmw!4927
2025-11-23 15:01:53 +03:00
jvoisin
c09cb5c0de
Merge branch 'fileview' into 'master'
...
Use std::string_view in file collections
See merge request OpenMW/openmw!4909
2025-11-10 21:08:05 +00:00
AnyOldName3
ef8e7d97cb
Resolve merge conflicts from !4971
2025-11-10 16:01:47 +00:00
Andrei Kortunov
6d3f5cf70c
Dehardcode script settings window font and colors
2025-11-08 20:31:24 +04:00
AnyOldName3
0a9f5a3c66
Resolve merge conflicts from !4938 and !4956
2025-11-02 18:05:38 +00:00
elsid
7bf1ea32b0
Disable not working tests for MSVC
...
std::streambuf in MSVC does not support buffers larger than 2**31 - 1:
https://developercommunity.visualstudio.com/t/stdbasic-stringbuf-is-broken/290124
Simple test to check if it works:
TEST(IMemStreamTest, shouldRead)
{
std::string src(std::numeric_limits<uint32_t>::max() / 2 + 1, '\0');
Files::IMemStream stream(src.data(), src.size());
std::string dst(src.size(), '\0');
stream.read(dst.data(), src.size());
EXPECT_FALSE(stream.fail()) << std::generic_category().message(errno);
}
2025-10-12 11:11:24 +02:00
elsid
ab4637f6c7
Do not rely on std::string::reserve
...
Passing an object with capacity through std::ostringstream may change
its capacity. Use malloc instead to make sure the memory is allocated.
2025-10-12 11:11:22 +02:00
Alexei Kotov
afe4edc3c3
Merge branch 'fix_bsatool_afl_findings' into 'master'
...
Fix AFL findings in bsatool
See merge request OpenMW/openmw!4925
2025-10-11 08:57:48 +03:00
elsid
c87cc643d1
Add tests for BSAFile
2025-10-06 00:02:32 +02:00
elsid
d7f6d7c13c
Add unit tests for CompressedBSAFile
2025-10-06 00:02:32 +02:00
AnyOldName3
06cb00bb0b
Resolve merge conflicts from !4924 and !4928
...
luamanagerimp still needs float frameDuration, and reordering a bunch of fields in the scene manager conflicted with changing the type of maxanisotropy.
2025-10-04 23:08:20 +01:00
Evil Eye
000c5d2a08
Ensure error marker assignment is thread safe
2025-09-25 20:47:10 +02:00
Evil Eye
1caac90e93
Add btVector3 -> osg::Vec3f helper
2025-09-21 12:14:50 +02:00
Evil Eye
71fa8c9f7d
Fix conversion warnings in components_tests
2025-09-20 12:12:31 +02:00
Evil Eye
14e1ec6d87
Use pathhelpers to populate Collections
2025-09-01 17:57:44 +02:00
psi29a
14d9be7885
Merge branch 'thegaidenshinjieffect' into 'master'
...
Use std::string_view and std::format in components/fx
See merge request OpenMW/openmw!4857
2025-08-23 09:54:09 +00:00
elsid
3067294f0d
Add and fix -Wshadow
2025-08-18 21:09:06 +02:00
Evil Eye
a6c942b33a
Account for numeric precision and infinities. Also pretend to be more like GLSL
2025-08-18 19:52:28 +02:00
elsid
d121b606b6
Fix and enforce local variable naming
2025-08-05 21:27:48 +02:00
Evil Eye
bc05628fa8
Resolve unused code warnings when compiling in Debug mode using MSVC
2025-07-30 20:44:59 +02:00
elsid
70207750f2
Make tests more stable
2025-07-28 20:23:45 +02:00
elsid
4433e3c2de
Build path over navmesh for wandering actors
...
Using a path over pathgrid as checkpoints.
This allows to avoid having paths going through obstacles if they are
placed over pathgrid points.
2025-07-27 11:17:17 +02:00
AnyOldName3
be54521cfa
Fix loads of warnings
...
These weren't detected due to https://gitlab.com/OpenMW/openmw/-/issues/7882 , but now they are, so they can be fixed.
2025-07-24 00:20:05 +01:00
elsid
28851411a3
Fix and enforce namespace naming
2025-07-20 21:19:16 +02:00
psi29a
c691c72cec
Merge branch 'esm4sound' into 'master'
...
Initial support of ESM4 sounds
See merge request OpenMW/openmw!3784
2025-07-08 10:32:24 +00:00
Alexei Kotov
c0276b6890
Merge branch 'cpputil2lua' into 'master'
...
Move some util to lua
See merge request OpenMW/openmw!4750
2025-07-08 12:45:14 +03:00
Petr Mikheev
10dba7cda7
Initial support of ESM4 sounds; play opening sound of ESM4 doors.
2025-07-08 11:14:13 +02:00
Evil Eye
0c4af81a69
Fix tests
2025-07-07 16:48:24 +02:00
Kuyondo
36604777f2
tests 2
2025-07-07 20:14:38 +08:00
Kuyondo
3f352b2470
tests
2025-07-07 19:28:12 +08:00
psi29a
83a37fecea
Merge branch 'l10n_format' into 'master'
...
Treat formatting string arguments as UTF-8 string
Closes #8385
See merge request OpenMW/openmw!4751
2025-07-07 09:28:43 +00:00
Andrei Kortunov
d455ff5f5e
Treat formatting string arguments as UTF-8 string
2025-07-06 13:35:27 +04:00
Evil Eye
206d38f3d7
Fix path handling for files in BSAs
2025-07-03 08:46:23 +02:00
psi29a
2ffc44c31f
Merge branch 'filenameexceptions' into 'master'
...
Remove file name naming convention check exceptions (#7249 )
Closes #7249
See merge request OpenMW/openmw!4551
2025-07-01 20:45:33 +00:00
elsid
b5f8a0ecdb
Fix warning: -Wstring-compare
...
In file included from ../../../components/esm/defs.hpp:7,
from ../../../apps/components_tests/esm/test_fixed_string.cpp:1:
In function 'bool ESM::operator==(const FixedString<capacity>&, const char (&)[rhsSize]) [with long unsigned int capacity = 4; long unsigned int rhsSize = 12]',
inlined from 'virtual void {anonymous}::EsmFixedString_empty_strings_Test::TestBody()' at ../../../apps/components_tests/esm/test_fixed_string.cpp:82:13:
../../../components/esm/esmcommon.hpp:142:85: error: 'int strncmp(const char*, const char*, size_t)' of strings of length 0 and 4 and bound of 4 evaluates to nonzero [-Werror=string-compare]
142 | return strnlen(rhs, rhsSize) == strnlen(lhs.mData, capacity) && std::strncmp(lhs.mData, rhs, capacity) == 0;
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
2025-04-28 22:07:00 +02:00
AnyOldName3
31fcc5e126
Add test for new ReadersCache functions
2025-04-11 17:30:56 +01:00
elsid
ada48d9021
Reduce a chance to have a deadlock in the AsyncNavMeshUpdater
...
* Do not fail tile generation if debug mesh writing fails.
* Mark some functions as noexcept to better crash than have a deadlock.
* Unlock tile and remove job if there on exception while processing it.
2025-03-23 23:33:40 +01:00
elsid
7112217adc
Use temporary directory for tests output
2025-03-23 23:33:40 +01:00