206 Commits
Author SHA1 Message Date
Alexei Kotov b370bce480 Restore data directory root Morrowind.ini detection
This turned out to be relevant for those data directories that were generated by the wizard from a retail disc.
Note the initial disc installation doesn't need to be registered as an installation because of the special case when the settings importer is run.
2026-03-18 03:12:19 +03:00
Alexei Kotov 427da3cb90 Wizard: Mostly uncursify data directory handling (#8999)
Avoid shoving every single directory in the config file
Avoid duplicates caused by mismatches between the canonical path with forward slash separator and the absolute path with native separators
Give up on the broken attempt to move the path to the end of the list and clean up the essentially dead code
2026-03-18 03:09:09 +03:00
Alexei Kotov a59985894c Wizard: Preserve comments when writing openmw.cfg 2026-03-18 02:29:39 +03:00
Alexei Kotov fe3ea42955 Use the appropriate types for string literals and languages in the wizard 2026-03-16 19:13:49 +03:00
Alexei Kotov f7963efcda Realize QMessageBox::critical/question exist, convert MainWizard messages 2026-03-16 18:33:30 +03:00
Alexei Kotov 450a8c60ea Move "can't create user config directory" error to the constructor
If the standard library failed to create it, it's doubtful Qt will succeed, might as well fail early
2026-03-16 18:09:10 +03:00
Alexei Kotov aa43bd4522 Deduplicate MainWizard critical error messages 2026-03-16 18:09:10 +03:00
Alexei Kotov 7eef5d4efb Make MainWizard::findFiles static 2026-03-16 18:09:10 +03:00
Alexei Kotov c975a192dd More wizard cleanup I can't be bothered to categorize
This also fixes language repopulation when you return to the language selection page.
2026-03-16 18:09:10 +03:00
Alexei Kotov ab7324bd41 Don't use the autoconnected button slot in the install target page 2026-03-16 18:09:10 +03:00
Alexei Kotov 294d24c5ba Const-ify everything in the wizard 2026-03-16 18:09:10 +03:00
Alexei Kotov 14a454d5ca Parent wizard messages to the relevant widget when applicable
This improves positioning. Not the ones in the wizard constructor as that won't go too well.
2026-03-16 18:09:10 +03:00
Alexei Kotov 45db9ce156 Wizard: Clean up the existing installation page 2026-03-13 18:07:46 +03:00
Alexei Kotov c4a71f1f4c Wizard: Make IniSettings Unshield-specific
This Morrowind.ini reader-writer is not used anywhere outside the Unshield worker.
2026-03-11 20:08:15 +03:00
Alexei Kotov 7f18c3cfd5 Get rid of ComponentsListWidget
Why do we even have that widget?
2026-03-11 20:08:15 +03:00
Alexei Kotov cb7e1a55ae Wizard: Clean up language selection 2026-03-11 20:08:15 +03:00
Alexei Kotov 44db323019 Wizard: Simplify Morrowind.ini detection 2026-03-11 20:08:15 +03:00
Nathan Conway d5d022bd96 type fix 2026-02-27 14:47:44 -05:00
Nathan Conway cd0f0c4f97 remove localized log messages, removed translations for those 2026-02-27 11:33:26 -05:00
Nathan Conway 2efb47c74d removed more dead code 2026-02-27 11:00:26 -05:00
Nathan Conway e75c250c01 wizard logging uses Log class 2026-02-26 22:44:33 -05:00
AnyOldName3 3512054da7 Merge branch 'ci-tweaks-2022-rebased-2026-plus-msbuild' into 'master'
CI tweaks 2022

See merge request OpenMW/openmw!5085
2026-01-23 00:07:09 +00:00
AnyOldName3 3cf755266f Prefer add_compile_definitions
add_definitions is really add_any_compiler_flag_you_want
2026-01-17 00:50:12 +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
Evil Eye dafefc2e88 Address feedback 2025-12-01 17:08:51 +01:00
Evil Eye f619fab7aa Don't build a list of installations outside the wizard 2025-12-01 17:08:51 +01:00
Evil Eye cdb89422d4 Allow for more than a single installation 2025-12-01 17:08:50 +01:00
elsid 0f36b7fc97 Fix and enforce parameter naming 2025-08-27 12:45:09 +02:00
elsid 3067294f0d Add and fix -Wshadow 2025-08-18 21:09:06 +02:00
elsid d121b606b6 Fix and enforce local variable naming 2025-08-05 21:27:48 +02:00
elsid 28851411a3 Fix and enforce namespace naming 2025-07-20 21:19:16 +02:00
Alexei Kotov ac9505b536 Rename components/to_utf8 directory and files to follow naming conventions 2025-02-23 00:18:07 +03:00
pi03k 18080a83d6 Move from qt_wrap_ui to AUTOUIC for launcher and wizard
(#7348)
2024-11-10 20:38:14 +01:00
Alexey Sokolov be15db4dfb Remove old dependency on Xt which shouldn't be needed anymore 2024-10-16 14:28:34 +01:00
Andrei Kortunov bf682d51a6 Support dark mode on Windows (feature 7985) 2024-05-20 16:50:24 +04:00
Andrei Kortunov abd4596cf8 Do not use style sheets to set font 2024-05-12 15:34:33 +04:00
Andrei Kortunov 9252879f0f UI fixes for Wizard 2024-05-01 08:56:35 +04:00
Andrei Kortunov 0873eb6e62 Use scalable icons for wizard 2024-04-23 11:49:33 +04:00
Andrei Kortunov 1bb48bcef7 Treat editor icons as scalable 2024-04-21 20:56:06 +04:00
AnyOldName3 0d547c5438 Resolve merge conflicts from https://gitlab.com/OpenMW/openmw/-/merge_requests/3893 2024-04-08 13:37:36 +01:00
AnyOldName3 7f1a6a8187 Fix file that's not used on Windows 2024-03-06 01:37:40 +00:00
AnyOldName3 a130ca57a4 Track source of settings
This one's a biggie.

The basic idea's that GameSettings should know:
* what the interpreted value of a setting is, so it can actually be used.
* what the original value the user put in their config was, so it can be put back when the config's saved.
* which path it's processing the openmw.cfg from so relative paths can be resolved correctly.
* whether a setting's a user setting that can be modified, or from one of the other openmw.cfg files that can't necessarily be modified.

This had fairly wide-reaching implications.

The first is that paths are resolved properly in cases where they previously wouldn't have been.
Without this commit, if the launcher saw a relative path in an openmw.cfg, it'd be resolved relative to the process' working directory (which we always set to the binary directory for reasons I won't get into).
That's not what the engine does, so is bad.
It's also not something a user's likely to suspect.
This mess is no longer a problem as paths are resolved correctly when they're loaded instead of on demand when they're used by whatever uses them.

Another problem was that if paths used slugs like ?userconfig? would be written back to openmw.cfg with the slugs replaced, which defeats the object of using the slugs.
This is also fixed.

Tracking which settings are user settings and which are in a non-editable openmw.cfg allows the launcher to grey out rows so they can't be edited (which is sensible as they can't be edited on-disk) while still being aware of content files that are provided by non-user data directories etc.
This is done in a pretty straightforward way for the data directories and fallback-archives, as those bits of UI are basic, but it's more complicated for content files as that uses a nmodel/view approach and has a lot more moving parts.
Thankfully, I'd already implemented that when dealing with builtin.omwscripts, so it just needed wiring up.

One more thing of note is that I made the SettingValue struct storable as a QVariant so it could be attached to the UI widgets as userdata, and then I could just grab the original representation and use it instead of needing any complicated mapping from display value to on-disk value.
2024-03-06 00:36:13 +00:00
AnyOldName3 322a378907 Load correct config files in the wizard 2024-02-28 00:49:15 +00:00
Andrei Kortunov 9a7b9572fd Deploy base Qt translations when needed 2024-02-15 09:26:14 +04:00
Andrei Kortunov 7e345436f4 Localize Launcher and Wizard 2024-02-01 09:47:25 +04:00
Andrei Kortunov 737d3b499b Use move semantics for tools 2024-01-21 20:20:37 +04:00
Yury StepovikovandAnyOldName3 52623ddd7d Set MacOS current_path before reading configuration files [#7706] 2024-01-11 00:59:27 +00:00
Alexei Kotov 51b05647e2 Merge branch 'move_files' into 'master'
Move *.ui files for different applications to different folders

See merge request OpenMW/openmw!3659
2023-12-24 09:58:24 +00:00
Andrei Kortunov e6690bbcc7 Use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR 2023-12-19 19:58:52 +04:00
Andrei Kortunov 2e041073fc Move *.ui files for different applications to different folders 2023-12-19 15:21:08 +04:00