elsid
036937ee02
Store RenderManager textures by value
2 years ago
elsid
6738722aa5
Initialize all required osgMyGUI::DataManager members in constructor
2 years ago
elsid
1c507125df
Remove empty functions
2 years ago
elsid
d307178683
Replace components/vfs/manager.hpp include by forward declaration
2 years ago
elsid
a281bcaf90
Remove redundant Platform::initialize function
2 years ago
elsid
c0e1642d7f
Use unique_ptr for osgMyGUI::Platform members
2 years ago
Andrei Kortunov
de58c9dff3
Get rid of obsolete osg::Geode where it is possible
2 years ago
Andrei Kortunov
168a097c8b
Improve binding VFS to MyGUI
2 years ago
psi29a
3b75ae7ff1
Merge branch 'terrain-include-cleanup' into 'master'
...
Cleanup includes in Terrain component
See merge request OpenMW/openmw!2157
2 years ago
Matt
c6bc264b35
Use correct assertion for the file implementation
2 years ago
psi29a
4a15fae588
Merge branch 'fix-fileclose' into 'master'
...
Use ScopedHandle for File::Handle
See merge request OpenMW/openmw!2159
2 years ago
ζeh Matt
8f7ec42c09
Close handle if valid for move assignment
3 years ago
Andrei Kortunov
4e7fe5a8bd
Set VFS only once
3 years ago
ζeh Matt
8a724eb772
Delete assignment and copy constructor
3 years ago
ζeh Matt
3c8ef8463c
Close only valid handles
3 years ago
Petr Mikheev
e222afc764
Merge branch 'fwd-lua-vfs' into 'master'
...
Type forward VFS::Manager in luastate.hpp and l10n.hpp
See merge request OpenMW/openmw!2158
3 years ago
ζeh Matt
2014ea40b9
Use ScopedHandle for File::Handle
3 years ago
psi29a
40cab76de5
Merge branch 'fonts' into 'master'
...
Enhance a way to setup fonts and layout files
See merge request OpenMW/openmw!2112
3 years ago
ζeh Matt
c5d85c1854
Revert removal of <atomic>
3 years ago
ζeh Matt
764d34362e
Type forward VFS::Manager in luastate.hpp and l10n.hpp
3 years ago
ζeh Matt
ddf43ec42f
Move structs into separate headers, cleanup includes, cleanup forwarders
3 years ago
ζeh Matt
ce556ba0cc
Remove obsolete LowLevelFile
3 years ago
Andrei Kortunov
845a812ebf
Drop fonts export - users are supposed to use TrueType fonts or mods with legacy format
3 years ago
Andrei Kortunov
5bc5c1bb0c
Use our fonts as a fallback
3 years ago
Andrei Kortunov
1f864e3127
Do not override monospace font
3 years ago
Andrei Kortunov
dc0d6fe31d
Avoid code duplication
3 years ago
Andrei Kortunov
facdc8fc0d
Use string_view
3 years ago
Andrei Kortunov
d83382d236
Rework Profiler to work with VFS
3 years ago
Andrei Kortunov
59c4ea014d
Rework StatsHandler to support VFS
3 years ago
Andrei Kortunov
6f6b5ba04b
Some refactoring
3 years ago
Andrei Kortunov
db686b25c2
Use fallback data from openmw.cfg to setup fonts
3 years ago
Andrei Kortunov
8513bc9620
Fix build error on MSVC
3 years ago
Andrei Kortunov
8fc3635c2c
Use case-insensitive font keys, remove debug code
3 years ago
Andrei Kortunov
c47a48e25d
Inject layout files to VFS
3 years ago
Andrei Kortunov
2630bc21dd
Allow to override MyGUI layout
3 years ago
Andrei Kortunov
4ddba5142e
Introduce font mappings
3 years ago
Andrei Kortunov
dd04bfccfb
Load fonts
3 years ago
Evil Eye
3967509cdd
Use meaningful names instead of pretending we don't know what snow is
3 years ago
psi29a
7c442926f8
Merge branch 'platform-file' into 'master'
...
Move platform specific file code into platform and cleanup LowLevelFile
See merge request OpenMW/openmw!2143
3 years ago
psi29a
b032a643f9
Merge branch 'vfs_string_view' into 'master'
...
Use std::string_view in VFS::Manager
See merge request OpenMW/openmw!2148
3 years ago
psi29a
6cc3ec12db
Merge branch 'ci-werror' into 'master'
...
Windows, MSVC: Enable warnings as errors on CI
See merge request OpenMW/openmw!2146
3 years ago
ζeh Matt
03302a8f5b
Conditionally build cpp for platform, remove obsolete header
3 years ago
elsid
0e12d331f9
Simplify iteration over Bone::mChildren
3 years ago
elsid
e4f599575e
Use unique_ptr to manage Bone lifetime
3 years ago
Petr Mikheev
38ee6d285d
Use std::string_view in VFS::Manager
3 years ago
elsid
6c8ed4d19c
Move Files::IStreamPtr alias to a separate header
...
To avoid transitive include of Windows.h all over the engine.
3 years ago
Project579
02ef9c953e
MSVC: Fix all warnings at level 4, upgrade Qt5 to 5.15.2 to also reduce warnings, disabled 5054 warnings due to Qt5's use of deprecated operators in C++20 .
3 years ago
ζeh Matt
3d5f898920
Cleanup and fixes
3 years ago
ζeh Matt
1b70ff775d
Move platform specific file code into platform and cleanup LowLevelFile
3 years ago
elsid
9398e97600
Avoid manual memory management for VFS archives
3 years ago
jvoisin
2ef2e93a46
Merge branch 'collection-lowercase' into 'master'
...
Makes key inside Collection::getCollection use lowercase
Closes #6483
See merge request OpenMW/openmw!2135
3 years ago
ζeh Matt
92e209c62a
Simplify getIsHungAppWindow
3 years ago
Matt
888d009a1e
Apply 1 suggestion(s) to 1 file(s)
3 years ago
Matt
32d50765ab
Apply 1 suggestion(s) to 1 file(s)
3 years ago
Igor Fedosov
68887e79a0
Makes key inside Collection::getCollection use lowercase
3 years ago
ζeh Matt
0d625abde0
Declare utf8ToUtf16 static
3 years ago
ζeh Matt
100e400fed
Dynamically obtain the function pointer to IsHungAppWindow
3 years ago
psi29a
80adcf3c88
Merge branch 'maybe_lock' into 'master'
...
Refactor Maybe*Locks
See merge request OpenMW/openmw!2126
3 years ago
Andrei Kortunov
d3da09878d
Drop line about non-existent UnrefQueue
3 years ago
elsid
22ed6d5c1e
Use unsigned to define number of threads
3 years ago
psi29a
54db3a97bb
Merge branch 'multiview-refactor' into 'master'
...
[Multiview] refactoring
See merge request OpenMW/openmw!2122
3 years ago
Petr Mikheev
9fbcc5df5e
Merge branch 'localization' into 'master'
...
Use Lua's YAML-based localization for MyGUI
See merge request OpenMW/openmw!2099
3 years ago
Andrei Kortunov
ccbb5e03fb
Use YAML files to translate MyGUI's localization tags
3 years ago
Mads Buvik Sandvei
b277fa48c7
Refactor multiview to avoid littering OSG_HAS_MULTIVIEW and multiview-related uniforms around the code, keep them all in multiview.cpp.
3 years ago
psi29a
aaaeed572a
Merge branch 'fix_6841' into 'master'
...
Treat empty `RootCollisionNode` in NIF as NC flag and generate VisualOnly collision shape
Closes #6841
See merge request OpenMW/openmw!2084
3 years ago
Petr Mikheev
8b8c304953
Treat empty `RootCollisionNode` in NIF as NCC flag and generate CameraOnly collision shape
3 years ago
Petr Mikheev
dc3ba3a75b
Fix #6862
3 years ago
elsid
9ac3bb753e
Move declaration private static member variables of LightManager to .cpp
...
There is no need to expose them to other translation units.
3 years ago
elsid
4211cf1c24
Use uniform indent and apply openmw naming policy
3 years ago
psi29a
510a9b9a5e
Merge branch 'navmeshtilescache_find' into 'master'
...
Avoid redundant copy when finding item in NavMeshTilesCache
See merge request OpenMW/openmw!2109
3 years ago
elsid
6fb7af3b63
Avoid redundant copy when finding item in NavMeshTilesCache
...
std::make_tuple returns a tuple for types with removed references which makes it
to copy arguments. std::tie leaves references.
3 years ago
elsid
b4f12aace1
Explicitly ignore result of std::unique_ptr::release call
...
components/nifbullet/bulletnifloader.cpp:206:13: warning: the value returned by this function should be used [bugprone-unused-return-value]
boxShape.release();
^~~~~~~~~~~~~~~~~~
components/nifbullet/bulletnifloader.cpp:232:13: warning: the value returned by this function should be used [bugprone-unused-return-value]
child.release();
^~~~~~~~~~~~~~~
components/nifbullet/bulletnifloader.cpp:233:13: warning: the value returned by this function should be used [bugprone-unused-return-value]
mStaticMesh.release();
^~~~~~~~~~~~~~~~~~~~~
components/nifbullet/bulletnifloader.cpp:240:9: warning: the value returned by this function should be used [bugprone-unused-return-value]
mStaticMesh.release();
^~~~~~~~~~~~~~~~~~~~~
components/nifbullet/bulletnifloader.cpp:246:9: warning: the value returned by this function should be used [bugprone-unused-return-value]
mAvoidStaticMesh.release();
^~~~~~~~~~~~~~~~~~~~~~~~~~
components/nifbullet/bulletnifloader.cpp:411:9: warning: the value returned by this function should be used [bugprone-unused-return-value]
childMesh.release();
^~~~~~~~~~~~~~~~~~~
components/nifbullet/bulletnifloader.cpp:425:9: warning: the value returned by this function should be used [bugprone-unused-return-value]
childShape.release();
^~~~~~~~~~~~~~~~~~~~
3 years ago
elsid
72bda2bd10
Avoid redundant initialization
...
components/nifbullet/bulletnifloader.cpp:79:24: warning: Value stored to 'a' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
unsigned short a = strip[0], b = strip[0], c = strip[1];
^ ~~~~~~~~
3 years ago
elsid
5b9ca3b979
Avoid possible division by zero
...
components/detournavigator/navmeshdb.cpp:183:43: warning: Division by zero [clang-analyzer-core.DivideZero]
setMaxPageCount(*mDb, maxFileSize / dbPageSize + static_cast<std::uint64_t>((maxFileSize % dbPageSize) != 0));
~~~~~~~~~~~~^~~~~~~~~~~~
components/detournavigator/navmeshdb.cpp:182:33: note: Calling 'getPageSize'
const auto dbPageSize = getPageSize(*mDb);
^~~~~~~~~~~~~~~~~
components/detournavigator/navmeshdb.cpp:144:13: note: 'value' initialized to 0
std::uint64_t value = 0;
^~~~~~~~~~~~~~~~~~~
components/detournavigator/navmeshdb.cpp:145:13: note: Calling 'request<DetourNavigator::(anonymous namespace)::GetPageSize, unsigned long *, >'
request(db, statement, &value, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
components/sqlite3/request.hpp:254:64: note: Left side of '&&' is false
for (std::size_t i = 0; executeStep(db, statement) && i < max; ++i)
^
components/detournavigator/navmeshdb.cpp:145:13: note: Returning from 'request<DetourNavigator::(anonymous namespace)::GetPageSize, unsigned long *, >'
request(db, statement, &value, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
components/detournavigator/navmeshdb.cpp:146:13: note: Returning zero (loaded from 'value')
return value;
^~~~~~~~~~~~
components/detournavigator/navmeshdb.cpp:182:33: note: Returning from 'getPageSize'
const auto dbPageSize = getPageSize(*mDb);
^~~~~~~~~~~~~~~~~
components/detournavigator/navmeshdb.cpp:182:9: note: 'dbPageSize' initialized to 0
const auto dbPageSize = getPageSize(*mDb);
^~~~~~~~~~~~~~~~~~~~~
components/detournavigator/navmeshdb.cpp:183:43: note: Division by zero
setMaxPageCount(*mDb, maxFileSize / dbPageSize + static_cast<std::uint64_t>((maxFileSize % dbPageSize) != 0));
~~~~~~~~~~~~^~~~~~~~~~~~
3 years ago
AnyOldName3
2bb28b5e27
Merge branch 'fix_typo' into 'master'
...
Fix particle flags typo (#6857 )
Closes #6857
See merge request OpenMW/openmw!2102
3 years ago
glassmancody.info
0954597fa7
fix typo with wrong flags in particle nifloader
3 years ago
Andrei Kortunov
38042fd7a2
Init missing variables
3 years ago
Andrei Kortunov
aed0da46a9
Check a result of dynamic_cast
3 years ago
jvoisin
f451b09f10
Merge branch 'rm_stream_include' into 'master'
...
Remove redundant ostream, istream, iostream and sstream includes
See merge request OpenMW/openmw!2097
3 years ago
psi29a
9003e83470
Merge branch 'particle_vertex' into 'master'
...
Soft enforce vertex lighting on particle systems (i.e. with exception of normal maps)
See merge request OpenMW/openmw!2098
3 years ago
psi29a
85a8359b36
Merge branch 'only_when_necassary' into 'master'
...
Conditional soft particles
See merge request OpenMW/openmw!2078
3 years ago
glassmancody.info
7bed2208e9
only force ppl on particles with normal maps
3 years ago
elsid
bef15edf0b
Remove redundant ostream, istream, iostream and sstream includes
...
* Replace by std::to_string and operator+ where possible.
* Move the code requiring to include <sstream> from .hpp to .cpp files.
3 years ago
elsid
782d3d9680
Avoid calling getMultiview from ~StereoFrustumManager
...
Otherwise coverity complains about a function throwing exceptions called from a
destructor.
3 years ago
Andrei Kortunov
f6a07ab603
Merge branch 'fix_image_button_scale' into 'master'
...
Use float based scale factor for ImageButton texture (#6849 )
Closes #6849
See merge request OpenMW/openmw!2076
3 years ago
elsid
a16c55c93f
Use float based scale factor for ImageButton texture
3 years ago
jvoisin
bbcc12262f
Merge branch 'fix_icu_from_utf8_debug_crash' into 'master'
...
Avoid constructing icu::StringPiece from std::string directly (#6782 )
Closes #6782
See merge request OpenMW/openmw!2073
3 years ago
jvoisin
498a835b77
Merge branch 'coverity' into 'master'
...
Fix some Coverity issues
See merge request OpenMW/openmw!2082
3 years ago
Andrei Kortunov
fe785ea788
Don't cast away const when we can avoid it
3 years ago
Andrei Kortunov
14b5674d32
Init missing data members
3 years ago
Andrei Kortunov
124db67496
Add an assert to detect possible nullptr dereference
3 years ago
Andrei Kortunov
5d94a94a98
Use a Boost API to resolve symlinks instead of low-level code
3 years ago
Andrei Kortunov
7cce341822
Fix initializer
3 years ago
Andrei Kortunov
d2a1cc954f
Remove unused variable
3 years ago
Andrei Kortunov
aa349f2ed9
Initialize some missing variables
3 years ago
Andrei Kortunov
523ad825c2
There is no point to compare an unsigned value with 0
3 years ago
glassmancody.info
a0265ffb89
only enable soft particles when enabled in settings
3 years ago
AnyOldName3
6609243c87
Merge branch 'dont_notice_me_launcher_senpai' into 'master'
...
Don't load content entries from global and local configs
Closes #6441
See merge request OpenMW/openmw!2068
3 years ago
Petr Mikheev
11d1a54626
Merge branch 'more-stereo-woes' into 'master'
...
More stereo-postprocessing integration
See merge request OpenMW/openmw!2054
3 years ago
Mads Buvik Sandvei
6dc727cf8f
More stereo-postprocessing integration
3 years ago