1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-10 18:00:53 +00:00
Commit graph

25 commits

Author SHA1 Message Date
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
ddbb07
b621d09b58 Remove unecessary sort in test 2025-12-04 23:03:39 +01:00
ddbb07
243b087845 Fix imports in test 2025-12-04 16:35:29 +01:00
ddbb07
120c7adddb Add more tests 2025-12-04 07:40:26 +01:00
ddbb07
3dec065dff Add another test 2025-12-04 07:40:26 +01:00
ddbb07
8349c09170 Add unit tests 2025-12-04 07:40:26 +01:00
jvoisin
429305401e Merge branch 'keywordsoup' into 'master'
Fix KeywordSearch

Closes #8760

See merge request OpenMW/openmw!4960
2025-11-10 21:20:09 +00:00
AnyOldName3
f31ec2b3a5 Merge branch 'printf' into 'master'
Bring messagebox format parsing more in line with printf/vanilla

Closes #8732

See merge request OpenMW/openmw!4878
2025-11-10 15:23:48 +00:00
Evil Eye
e59f3327ef Fix KeywordSearch 2025-10-22 18:28:48 +02:00
Evil Eye
50ffc908e8 Use vformat_to and add more tests 2025-10-03 17:21:52 +02:00
elsid
0f36b7fc97
Fix and enforce parameter naming 2025-08-27 12:45:09 +02:00
Evil Eye
0ab0e9abd7 Add format tests 2025-08-23 19:51:31 +02:00
Evil Eye
b7997a5e88 Use a simpler way of formatting floats 2025-08-16 11:33:58 +02:00
Evil Eye
eb01a302f1 Use a custom formatter to limit float precision 2025-08-16 09:22:54 +02:00
Claire
af58da58fd Fixed Unit Test in apps/openmw_tests/mwworld/testptr.cpp 2025-07-27 16:33:38 +00:00
Evil Eye
681a95b89f Merge branch 'fix_keyword_highlighting' into 'master'
FIX keyword substring highlighting regression

Closes #8265 and #1047

See merge request OpenMW/openmw!4685
2025-07-02 06:13:26 +00:00
Charles Horn
c948171d5f FIX keyword substring highlighting regression 2025-07-02 06:13:25 +00:00
psi29a
917b08e05d Merge branch 'MoonPhaseAndVisibilityFixes' into 'master'
Match vanilla moon phases and visibility times

Closes #8375

See merge request OpenMW/openmw!4616
2025-07-01 21:25:36 +00:00
Aussiemon
5ef947e14f Match vanilla moon phases and visibility times 2025-07-01 21:25:36 +00: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
7112217adc
Use temporary directory for tests output 2025-03-23 23:33:40 +01:00
Alexei Kotov
a3e19f9bb7 Rename apps/openmw_tests files to follow naming conventions 2025-02-22 23:47:12 +03:00
elsid
e01861140e
Add tests for MWWorld::Ptr 2024-08-30 20:46:56 +02:00
elsid
a5d9bb08e0
Support custom log level in tests 2024-07-13 11:15:34 +02:00
elsid
7d1cd11ba9
Split openmw_test_suite into openmw and components tests
To avoid duplicated compilation for openmw translation units. Link openmw-lib to
openmw-tests instead.
2024-06-10 23:12:14 +02:00