1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-03 15:34:35 +00:00
Commit graph

36789 commits

Author SHA1 Message Date
elsid
796202f435
Use fail function to verify stream state in BSA
If there is a failure to read the file like unexpected EOF, bad returns
false, but fail returns true. Important for reading number of items more
than the file actually has.
2025-10-06 00:02:32 +02:00
elsid
9a449ed506
Only reserve capacity when reading collections
But do not initialize. If the meta information is invalid and has a big
value, initialization will take significant amount of time but there
might be no actual data in the file because it's too small.
2025-10-06 00:02:31 +02:00
elsid
38f6c5a68b
Properly handle duplicated BSA folders
Deduplicate folders first and then add their files to mFiles.
2025-10-06 00:02:31 +02:00
elsid
c92e321a08
Use std::string_view for BSA file name 2025-10-06 00:02:31 +02:00
elsid
c388fda5e4
Handle empty file name in BSA 2025-10-06 00:02:28 +02:00
elsid
0bae2b14b1
Do not implicitly convert QByteArray to const char*
Operators supporting this conversion can be disabled via
QT_NO_CAST_FROM_BYTEARRAY breaking the build. For example:

https://koschei.fedoraproject.org//package/openmw
https://kojipkgs.fedoraproject.org/work/tasks/5096/137735096/build.log
2025-10-05 23:52:25 +02:00
elsid
d171915b6a
Fix error message 2025-10-05 14:46:40 +02:00
elsid
cfd7f52a2f
Fix C4244 MSVC warning in Sqlite3::copyColumn
Make sure sqlite3_column_double is not called for int64_t and other
integral types and sqlite3_column_int64 is not called for floating point
types.

[363/1189] Building CXX object components\CMakeFiles\components.dir\RelWithDebInfo\detournavigator\navmeshdb.cpp.obj
D:\dev\openmw\components/sqlite3/request.hpp(109): warning C4244: 'argument': conversion from 'double' to 'T', possible loss of data
        with
        [
            T=int64_t
        ]
D:\dev\openmw\components/sqlite3/request.hpp(109): note: the template instantiation context (the oldest one first) is
D:\dev\openmw\components\detournavigator\navmeshdb.cpp(198): note: see reference to function template instantiation 'I Sqlite3::request<DetourNavigator::DbQueries::GetMaxTileId,DetourNavigator::TileId*,>(sqlite3 &,Sqlite3::Statement<DetourNavigator::DbQueries::GetMaxTileId> &,I,size_t)' being compiled
        with
        [
            I=DetourNavigator::TileId *
        ]
D:\dev\openmw\components/sqlite3/request.hpp(262): note: see reference to function template instantiation 'void Sqlite3::getRow<DetourNavigator::TileId>(sqlite3 &,sqlite3_stmt &,T &)' being compiled
        with
        [
            T=DetourNavigator::TileId
        ]
D:\dev\openmw\components/sqlite3/request.hpp(210): note: see reference to function template instantiation 'void Sqlite3::getColumns<std::tuple<T &>>(sqlite3 &,sqlite3_stmt &,std::tuple<T &> &)' being compiled
        with
        [
            T=DetourNavigator::TileId
        ]
D:\dev\openmw\components/sqlite3/request.hpp(203): note: see reference to function template instantiation 'void Sqlite3::getColumnsImpl<1,T>(sqlite3 &,sqlite3_stmt &,T &)' being compiled
        with
        [
            T=std::tuple<DetourNavigator::TileId &>
        ]
D:\dev\openmw\components/sqlite3/request.hpp(190): note: see reference to function template instantiation 'void Sqlite3::copyColumn<T>(sqlite3 &,sqlite3_stmt &,int,int,T &)' being compiled
        with
        [
            T=DetourNavigator::TileId
        ]
2025-10-05 14:39:51 +02:00
Alexei Kotov
d8ef4fcde2 Changelog for #8734 2025-10-04 23:13:04 +03:00
Andrei Kortunov
d9b441ccaa Fix shield equip and unequip animations, add docs for shield sheathing feature (bug 8734) 2025-10-04 16:07:15 +04:00
Alexei Kotov
ef05e089ab Merge branch 'encucumberance' into 'master'
Update encumbrance unconditionally (#8729)

Closes #8729

See merge request OpenMW/openmw!4934
2025-10-04 11:14:35 +03:00
Alexei Kotov
d9bcc3dc4f Merge branch 'kelapasawit8123' into 'master'
Make weapon usage less restrictive

See merge request OpenMW/openmw!4906
2025-10-03 21:03:14 +03:00
Alexei Kotov
5c4821bed7 Merge branch 'override-all-the-things' into 'master'
DOC: Document data-local

See merge request OpenMW/openmw!4929
2025-10-03 00:28:27 +03:00
Dave Corley
fd7e6b6bcb DOC: Document data-local 2025-10-03 00:28:26 +03:00
Alexei Kotov
0eb1a79b00 Update encumbrance unconditionally (#8729)
The flag is only set when items are physically added/removed, which doesn't happen during barter
2025-10-02 08:29:24 +03:00
Alexei Kotov
9b76739489 Merge branch 'handlers' into 'master'
Deduplicate event handling code

See merge request OpenMW/openmw!4914
2025-10-02 00:55:23 +03:00
Alexei Kotov
f60875dd8f Merge branch 'soontm' into 'master'
Bump us up to 0.51

See merge request OpenMW/openmw!4900
2025-10-02 00:01:10 +03:00
psi29a
52d2f2a6ed Merge branch 'triggered' into 'master'
Make sure gamepad triggers can be bound (#8721)

Closes #8721

See merge request OpenMW/openmw!4931
2025-10-01 07:12:08 +00:00
Alexei Kotov
ae0886ae36 Make sure gamepad triggers can be bound (#8721) 2025-09-29 02:19:06 +03:00
Evil Eye
b2beb4a8f8 Don't break LuaUi::Element's invariant 2025-09-28 21:20:40 +02:00
psi29a
98973426a4 Merge branch 'dremoraspearsarepointy' into 'master'
Make Absorb Skill safe for creatures

Closes #8710

See merge request OpenMW/openmw!4926
2025-09-28 16:16:40 +00:00
Alexei Kotov
73d818da8c Merge branch 'dontcrashonerror' into 'master'
Ensure error marker assignment is thread safe

Closes #8176

See merge request OpenMW/openmw!4928
2025-09-27 03:18:38 +03:00
Evil Eye
000c5d2a08 Ensure error marker assignment is thread safe 2025-09-25 20:47:10 +02:00
Evil Eye
d2958a17fa Make Absorb Skill safe for creatures 2025-09-22 22:13:03 +02:00
elsid
91ccb0fe8d
Use proper naming for BSA File and Hash members 2025-09-20 19:21:17 +02:00
Petr Mikheev
bed84e209b Merge branch 'saveaction' into 'master'
Turn menu.saveGame into a delayed action

See merge request OpenMW/openmw!4924
2025-09-20 10:39:43 +00:00
Evil Eye
ff79c2d826 Turn menu.saveGame into a delayed action 2025-09-20 10:39:43 +00:00
Alexei Kotov
7d4d3e3c73 Merge branch 'notnpcdating' into 'master'
Translate gamepad actions, part 4

See merge request OpenMW/openmw!4922
2025-09-20 00:17:05 +03:00
Alexei Kotov
e5b5869a21 Merge branch 'kampfpanzer' into 'master'
Add German translations for OMWCombat

See merge request OpenMW/openmw!4921
2025-09-20 00:15:54 +03:00
Alexei Kotov
2ea14570c8 Merge branch 'you-were-supposed-to-tell-me-about-this' into 'master'
CLEANUP: Document addTopic

See merge request OpenMW/openmw!4923
2025-09-15 22:54:43 +03:00
Dave Corley
9a4db2d65f CLEANUP: Document addTopic 2025-09-14 15:32:38 -05:00
Alexei Kotov
1182004937 Use l10n for inventory gamepad actions 2025-09-14 15:46:02 +03:00
Alexei Kotov
b0055ec8e7 Use l10n for map gamepad actions 2025-09-14 03:23:48 +03:00
Alexei Kotov
baf575e594 Add Sex into OpenMW
...as well as the other lines required to expose the race menu gamepad actions to l10n and use them
2025-09-14 01:41:11 +03:00
Alexei Kotov
fbb726cee0 Merge branch 'shooting-at-macs-without-looking' into 'master'
Some MacOS tidying

See merge request OpenMW/openmw!4905
2025-09-14 01:18:50 +03:00
Alexei Kotov
0d260b3c8a Add German translations for OMWCombat 2025-09-14 00:44:05 +03:00
psi29a
28a540d5fd Merge branch 'googleenpassant' into 'master'
Add some missing French translations

See merge request OpenMW/openmw!4918
2025-09-13 13:22:16 +00:00
AnyOldName3
fe97e3c888 Move brew repair and update to architecture-independent script
It installs things now, so these commands are useful.
2025-09-12 18:09:12 +01:00
Alexei Kotov
0471b98436 Add French translations for Doppler factor lines 2025-09-12 12:59:20 +03:00
Alexei Kotov
e70eb1e2e1 Add French lines for OMWCombat 2025-09-12 12:59:20 +03:00
Kuyondo
4168b6d02e less restrictive probes and lockpicks equipping too 2025-09-11 22:08:58 +08:00
psi29a
9257beea4e Merge branch 'bmdhacks-controller-deslect-bug' into 'master'
Controller tooltip display preferences survive mouse movement

See merge request OpenMW/openmw!4858
2025-09-09 21:00:56 +00:00
Alexei Kotov
8074331637
Merge branch 'gamepadactionl10n' into 'master'
Translate gamepad actions, part 3

See merge request OpenMW/openmw!4916
2025-09-08 19:40:20 +03:00
Alexei Kotov
b3f4287bca Update Swedish Interface lines 2025-09-06 22:15:08 +03:00
AnyOldName3
aa5510fb46 Use CCache in GitHub Actions build again 2025-09-06 17:55:09 +01:00
bmdhacks
072504d3b7 fixed a tooltip bug in spell creation and made controller tooltip toggling a helper function in the window manager 2025-09-06 09:50:27 -07:00
Evil Eye
1403fbce1b
Merge branch 'flatpak-paths' into 'master'
Document Flatpak paths

See merge request OpenMW/openmw!4884
2025-09-06 09:39:42 +00:00
AnyOldName3
998c738ed0 Add some options from the Windows script to the MacOS script
Hopefully, they might even work, too.

Also move ccache installation to the CI script as it's not mandatory to use ccache for local builds.
2025-09-06 01:29:44 +01:00
AnyOldName3
98bb4af0cb Use correct shebang
[[ doesn't work in real sh, only in more advanced shells pretending to be sh.
2025-09-06 01:07:02 +01:00
AnyOldName3
0a2c929a76 Don't meddle with people's git settings
I can't see any reason for this to have been necessary in CI in the first place as we do CI runs for commits on a branch, not for a detached head.
Despite that, I've left it in the Linux and Android scripts as we don't suggest anyone runs those on their own machines.
2025-09-06 00:56:46 +01:00