1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-02-01 09:48:46 +00:00
Commit graph

4002 commits

Author SHA1 Message Date
Alexei Kotov
f57884c424 Merge branch 'globalSearchRegexCheck' into 'master'
[OpenCS] Validate regex patterns and fix Replace in global search view

Closes #7152

See merge request OpenMW/openmw!5127
2026-01-26 22:59:03 +03:00
Aussiemon
0ca93eb23e Move search result count persistence to tableSizeUpdate 2026-01-26 02:57:54 -07:00
Aussiemon
98f309d7f8 Update result count after replace 2026-01-26 01:47:12 -07:00
Aussiemon
a969a7fc44 Set result count through operationDone instead 2026-01-26 01:35:41 -07:00
Aussiemon
8a769464fb Lock replace button when no search results 2026-01-25 13:35:15 -07:00
Aussiemon
294e62719b Group setter methods together 2026-01-25 12:52:43 -07:00
Alexei Kotov
e7933da84e Pattern validation rewrite 2026-01-25 12:18:19 -07:00
Aussiemon
b607a6a98a Call update instead of direct disable 2026-01-25 01:13:47 -07:00
Aussiemon
2770145272 We don't need so many negations 2026-01-25 00:23:12 -07:00
Aussiemon
5269688efc Minor comment consistency 2026-01-25 00:15:19 -07:00
Aussiemon
911d588d0a Cleaner condition handling and edit lock 2026-01-24 23:56:38 -07:00
Aussiemon
98c912f813 Don't tint replace text 2026-01-24 12:04:16 -07:00
Aussiemon
12ec0dd60d Fix bad dynamic cast in subview 2026-01-23 01:14:37 -07:00
Aussiemon
2b43186d0e More complex global search handling 2026-01-23 01:14:22 -07:00
Telvanni 4Life
7b85802957 - Removed SpellEffectParams equality operator.
- Improved logic for handling skill and attribute association.
2026-01-22 20:53:17 -05:00
Aussiemon
ca1dbb7437 Validate regex patterns in global search 2026-01-22 16:49:46 -07:00
Telvanni 4Life
43c9424ebd Changed magicEffects parameter to be instantiated via constructor injection 2026-01-22 18:30:52 -05:00
Telvanni 4Life
51bf0074ad - Changed set and get methods in magic effect adapters to use MGEF context to determine skill and attribute associations.
- Changed SpellEffectParams equality operator in widgets to fetch skill and attribute associations via MGEF in ESM store.
2026-01-22 18:30:52 -05:00
Telvanni 4Life
8d23662cf2 Implemented setter injection to supply MGEF context to magic effect adapters 2026-01-22 18:30:52 -05:00
Alexei Kotov
dc022d10d4 Merge branch 'Assign-RefIds-to-MagicEffects' into 'master'
Assign StringRefIds to magic effects

See merge request OpenMW/openmw!5064
2026-01-18 01:50:55 +03:00
Alexei Kotov
c0c7ec1c8f Merge branch 'macos_deprecation_fixes' into 'master'
Fix macos deprecation warnings

See merge request OpenMW/openmw!5082
2026-01-09 19:02:17 +03:00
Telvanni 4Life
c6cc1be347 - Fixed OpenMW-CS incorrectly passing magic effect ids
- Resolved merge conflicts with !4323
- Minor refactor of affectsSkill helper function
- Removed redundant class definition
2026-01-08 14:36:38 -05:00
Telvanni 4Life
9159788c9b Address reviewer feedback and ran clang-format on modified files:
- Changed reverse lookup map constructor for gmsts, names, and ESM::MagicEffectIds to be more generic.
- Changed refIdToIndex to use map instead of array traversal.
- Removed redundant check from refIdToGmstString.
- Removed sMagicEffectNames and associated map. Removed dead code from loadmgef.cpp/hpp.
- Changed return types of magic effect bindings to RefId.
- Reverted ESMStore search to find.
- Changed std::map to std::unordered_map for faster lookups in resistance and weakness functions.
- Changed loadmgef To methods to pass RefId by value.
- Removed StringRefId alias MagicEffectId.
- Changed all effectId arguments in PR to pass-by-value.
- Removed ESM::MagicEffect::refIdToName function.
- Changed effect key type from long to ESM::RefId in OpGetEffect of mwscript.
- Removed superfluous MWWorld::Store<ESM::GameSettings> argument to MagicEffect store's setUp method.
- Removed transformation code from decompose for ENAM and IRDT structs.
- Changed resistance and weakness maps to initialization to use initialization instead of assignment.
- Changed sGmstEffectIds to constexpr array since all parameters are known at compile time.
- Changed getBoundItemsMap to use an unordered_map and have string_view values.
- MagicEffect store definition removed (uses standard template class TypedDynamicStore).
- Fixed bug in calculating sun damage that would have made vampires daywalkers in Mournhold.
- Removed polymorphic EffectKey constructor and added overload to getOrDefault.
- Placed ESM spec IRDT and ENAM structs in anonymous namespace.
- Added exception if attempting to serialize ENAM subrecords with out of bounds index.
- Added include format statements to satisfy Ubuntu CI linker.
2026-01-08 07:44:06 -05:00
Telvanni 4Life
74ebb29dd0 - Used addRecordFunctionBinding in magic effect binding.
- Changed find to search.
- Restored Hyrum's Law use of effect system by Visible Rings.
2026-01-08 07:40:43 -05:00
Telvanni 4Life
e389a3b343 - Changed OpenMW-CS model to use RefIds and QStrings for magic effects.
- Changed esmtool records to used RefIds for magic effects.
2026-01-08 07:40:02 -05:00
Telvanni 4Life
6ca64fdddd Changed statsextensions internal representations of magic effects to RefId. Interfaces with mwscript remain index-based. 2026-01-08 07:40:02 -05:00
Telvanni 4Life
bf5e7ba3f6 Changed ActiveSpells and ENAM struct to use only RefIds. Serialization still uses indexes for backward compatibility. 2026-01-08 07:16:30 -05:00
AnyOldName3
16efa6e5b5 Support long paths on Windows
Apparently we'd never bothered opting in, despite nearly everything in all out apps being entirely compatible and designed with long paths in mind.

GetModuleFileNameW is a bit awkward as it's just about the only Win32 function that returns the minimum of the buffer size and the string size - nearly everything else returns the full size even if it won't fit, so you can pass it a null pointer and a size of zero, and it'll tell you how much space you need to allocate.

I pretty much just copied the mostly-working long-path-friendly call site in the crash catcher to windowspath.cpp, but I also noticed that if the function failed and returned zero, the original implementation would loop forever, so I fixed that.

There was some code that could be ditched from the catch monitor as \\?\ is a prefix you can use to opt into long paths for a single API call instead of using the manifest to set it everywhere.
2026-01-07 15:12:22 +00:00
Bret Curtis
37bd120075 add version check 2026-01-06 09:50:23 +01:00
Bret Curtis
52b129fe39 fix macos deprecation warnings 2026-01-06 09:50:23 +01:00
Alexei Kotov
7ca6fbb952 Merge branch 'dialoguefilters' into 'master'
Expose info conditions to Lua

Closes #8076

See merge request OpenMW/openmw!5045
2025-12-19 04:33:39 +03:00
Evil Eye
60e6b94498 Fix the spelling of mercantile 2025-12-19 04:30:51 +03:00
Alexei Kotov
3dedc5e735 Merge branch 'explicitly-no-alpha' into 'master'
Ask for zero alpha bits for the CS

Closes #8270

See merge request OpenMW/openmw!4842
2025-12-18 12:56:57 +03:00
psi29a
538ad520bd Merge branch 'scaland' into 'master'
Improve Wayland fractional scaling

See merge request OpenMW/openmw!5040
2025-12-17 08:11:35 +00:00
Chris Djali (AnyOldName3)
2f002b885e Use devicePixelRatio directly 2025-12-11 00:02:39 +00:00
AnyOldName3
e91f5a5b0a Reformat comment to appease fascist Clang tool 2025-12-09 17:32:22 +00:00
AnyOldName3
bd685d672d Set RTT FBO format, too. 2025-12-09 17:25:59 +00:00
Evil Eye
5fde484997 Rename faction rank reaction to reputation 2025-12-09 17:54:13 +01:00
elsid
feb9cc004c
Fix portability-avoid-pragma-once warnings
components/misc/helpviewer.hpp:1:1: error: avoid 'pragma once' directive; use include guards instead [portability-avoid-pragma-once,-warnings-as-errors]
    1 | #pragma once
      | ^

apps/opencs/view/world/tableheadermouseeventhandler.hpp:1:1: error: avoid 'pragma once' directive; use include guards instead [portability-avoid-pragma-once,-warnings-as-errors]
    1 | #pragma once
      | ^
2025-11-25 21:16:50 +01:00
Alexei Kotov
c687a21ccb Merge branch 'enum_naming' into 'master'
Fix and enforce enum naming (#8424)

See merge request OpenMW/openmw!4986
2025-11-23 22:36:23 +03:00
elsid
d4ce5a2ac6
Fix and enforce enum naming 2025-11-22 11:19:18 +01:00
AnyOldName3
0a9f5a3c66 Resolve merge conflicts from !4938 and !4956 2025-11-02 18:05:38 +00:00
Evil Eye
cc10352def Address comments 2025-10-22 17:27:51 +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
AnyOldName3
a433114937 Rearrange extern so includes don't need to start with extern/ 2025-09-23 01:04:45 +01:00
Evil Eye
9523f46409 Address conversion warnings in opencs 2025-09-21 10:45:21 +02:00
Evil Eye
a0863290be Merge branch 'rm_small_tu' into 'master'
Remove small translation units

See merge request OpenMW/openmw!4895
2025-08-30 07:45:30 +00:00
Nelsson Huotari
5b01ca99f8 Merge branch 'smoothheightcrashesagain' into 'master'
Editor: Fix crash if the smoothed terrain vertex belongs to an unloaded cell (#8686)

Closes #8686

See merge request OpenMW/openmw!4891
2025-08-29 20:06:34 +00:00
elsid
dea69b229c
Remove small translation units
Remove .cpp files with small amount of code which don't have additional
includes compared to corresponding .hpp files. This reduces the total
size of preprocessed code of the project and should reduce compilation
time.
2025-08-29 00:41:47 +02:00
Alexei Kotov
35cc6e6daf Editor: Fix crash if the smoothed terrain vertex belongs to an unloaded cell (#8686) 2025-08-27 16:30:56 +03:00