1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-19 03:30:59 +00:00
Commit graph

8851 commits

Author SHA1 Message Date
AnyOldName3
115ee7a353 c a p i t u l a t e 2026-01-07 15:16:01 +00:00
AnyOldName3
18cc753517 Add comment highlighting known fragile code
We know we can't make the struct bigger as everything caught fire when we gave freeze dumps their own path, and was fixed when we switched to a common directory and just separate filenames.
Switching to wchar_t and stopping using UTF-8 here would cause a similar size increase, so similar problems are to be expected.
2026-01-07 15:12:22 +00: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
AnyOldName3
7d9eee3f33 Merge branch 'gogregistry' into 'master'
Detect the GOG Galaxy version of Morrowind on Windows

See merge request OpenMW/openmw!5041
2026-01-07 15:10:58 +00:00
psi29a
f11b96a905 Merge branch 'registry' into 'master'
Detect Steam installations on Windows and Linux

See merge request OpenMW/openmw!4885
2026-01-07 09:03:16 +00:00
Alexei Kotov
9efef817dc Merge branch 'navmeshtool_worldspaces' into 'master'
Somewhat reduce navmeshtool peak memory usage

See merge request OpenMW/openmw!5076
2025-12-31 00:37:51 +03:00
Alexei Kotov
efbdd0cd5e Merge branch 'vfs_normalized_path_26' into 'master'
Use normalized path in SoundManager (#8138)

See merge request OpenMW/openmw!5048
2025-12-27 23:18:02 +03:00
elsid
e9468267fc
Process worldspaces sequentially by navmeshtool
Gathering all cells data for all worldspaces may consume a lot memory if
interior cells processing is enabled.
2025-12-27 16:18:01 +01:00
elsid
07621574d0
Report number of StringRefIds 2025-12-25 13:26:23 +01:00
elsid
fc297f741a
Remove redundant includes 2025-12-25 13:05:16 +01:00
elsid
64c24800c6
Simplify initialization 2025-12-25 13:04:45 +01:00
jvoisin
dbcedf614d Merge branch 'recindex' into 'master'
Rename all remaining recIndex variations to recordIndex

See merge request OpenMW/openmw!5059
2025-12-24 20:31:05 +00:00
Evil Eye
8107fc451f Remove dead code 2025-12-22 17:24:29 +01:00
Evil Eye
699abf7858 Detect the GOG Galaxy version of Morrowind on Windows 2025-12-21 12:14:19 +01:00
Evil Eye
fa315a9f64 Adopt long path changes from !5054 2025-12-21 12:13:14 +01:00
Alexei Kotov
a6195698ae recIndex => recordIndex 2025-12-21 00:40:12 +03: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
AnyOldName3
f9bc7691e0 Merge branch 'recordrenaming' into 'master'
Make NIF base record members conform to the naming conventions

See merge request OpenMW/openmw!5051
2025-12-18 14:20:19 +00:00
jvoisin
77beed0a6c Merge branch 'bgsm' into 'master'
Don't read terrain parameters for BGSM v1/v2

See merge request OpenMW/openmw!5050
2025-12-18 12:43:01 +00:00
psi29a
7281f3e3f6 Merge branch 'near-far-wherever-you-are' into 'master'
Ensure near plane doesn't go past far plane when there are no shadow receivers

See merge request OpenMW/openmw!5047
2025-12-18 10:43:53 +00:00
Alexei Kotov
a0b73d5e62 Make NIF base record members conform to the naming conventions 2025-12-16 13:23:30 +03:00
Alexei Kotov
1e5979b80f Merge branch 'nifresizepurge' into 'master'
Reserve capacity for the remaining NIF collections

See merge request OpenMW/openmw!5049
2025-12-16 12:11:19 +03:00
Alexei Kotov
76ce47a890 Merge branch 'l10nformat' into 'master'
Replace format args with icu in engine messages

See merge request OpenMW/openmw!5032
2025-12-16 12:07:06 +03:00
Alexei Kotov
3927eaef66 Reserve capacity for controller NIF collections 2025-12-15 15:20:59 +03:00
Alexei Kotov
02d9c26289 Reserve capacity for node NIF collections 2025-12-15 15:20:59 +03:00
Alexei Kotov
17e279cf0d Don't read terrain parameters for BGSM v1/v2
This fixes parsing of most BGSM files from Fallout 4.
2025-12-15 14:50:47 +03:00
Alexei Kotov
7332b4e232 Reserve capacity for extra data NIF collections 2025-12-15 10:44:45 +03:00
Alexei Kotov
ea506019dc Reserve capacity for data NIF collections 2025-12-15 10:44:37 +03:00
Alexei Kotov
137382b424 Reserve capacity for physics NIF collections 2025-12-15 10:44:27 +03:00
elsid
5af72ba2c4
Remove unused vfs path symbols 2025-12-14 19:27:39 +01:00
Alexei Kotov
5a022532fd Merge branch 'livefactionreaction' into 'master'
Rename faction rank reaction to reputation

Closes #8789

See merge request OpenMW/openmw!5037
2025-12-14 18:18:40 +03:00
Alexei Kotov
29e43a0d80 Merge branch 'stem' into 'master'
Fix NormalizedView::stem to include dots

See merge request OpenMW/openmw!5044
2025-12-14 18:17:04 +03:00
AnyOldName3
2754d4264c Ensure near plane doesn't go past far plane when there are no shadow receivers 2025-12-14 00:21:42 +00:00
Evil Eye
f620790e1c Don't tolerate complex strings in the wine registry 2025-12-13 21:38:14 +01:00
Evil Eye
9e703f0fbf Unescape wine path 2025-12-13 12:22:20 +01:00
Evil Eye
9cac246337 Use ranges::replace 2025-12-12 23:25:29 +01:00
Evil Eye
2d33ead98d Fix NormalizedView::stem to include dots 2025-12-12 23:14:57 +01:00
Evil Eye
9c8edcc43b Increase max ext length to 4 2025-12-12 11:37:02 +01:00
Evil Eye
c9d5d6813d Address Coverity issues in BSA code 2025-12-11 13:03:53 +01:00
Evil Eye
853a6d1922 Rename wine header 2025-12-10 22:32:49 +01:00
Alexei Kotov
d5c7a6c6db Merge branch 'tovfsornottovfs' into 'master'
Address incorrect std::filesystem::path usage

Closes #8738

See merge request OpenMW/openmw!5033
2025-12-10 21:20:26 +03:00
Alexei Kotov
51e5328596 Merge branch 'verysafeget' into 'master'
Don't accept table like objects in getFieldOrNil

Closes #8840

See merge request OpenMW/openmw!5035
2025-12-10 21:19:22 +03:00
Evil Eye
5fde484997 Rename faction rank reaction to reputation 2025-12-09 17:54:13 +01:00
Evil Eye
b32b98d9f5 Detach elements from child before destroying it 2025-12-09 15:41:02 +01:00
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
Evil Eye
82914be8b2 Treat TES4+ BSA paths as VFS paths 2025-12-08 17:44:15 +01:00