Commit Graph

100 Commits

Author SHA1 Message Date
AnyOldName3 9d0a8eb8c4 New warning from !4980
It didn't like snake case, and then MSVC wasn't happened that it shadowed the constexpr value with the same name
2025-11-10 19:08:09 +00: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 a2bc1569e0
Remove unused includes 2025-08-02 12:45:03 +02:00
Evil Eye b4a753812e Use empty paths instead of optionals 2025-07-26 10:23:19 +02:00
Evil Eye c0b230b742 Remove global config on Windows 2025-07-26 09:45:35 +02:00
AnyOldName3 e0b13f0858 Ensure default config values are present
Moving builtin.omwscripts out of the root openmw.cfg means we actually might need to use the defaults, so need to have some.
2024-03-08 01:44:47 +00:00
AnyOldName3 f476301670 There's no such thing as the global data directory
That's what resources/vfs is for.
2024-02-27 14:11:48 +00:00
Andrei Kortunov 7e345436f4 Localize Launcher and Wizard 2024-02-01 09:47:25 +04:00
Andrei Kortunov 87c9f395f1 Move local variables in components 2024-01-19 16:01:48 +04:00
AnyOldName3 106dbba086 Restore and clarify comments damaged by !2971 2023-07-07 13:05:48 +00:00
Bret Curtis 0db31207dc remove remaining boost::filesystem cruft 2023-04-25 16:15:04 +02:00
elsid 0961720835
Join path components using path::operator/ instead of string::operator+ 2023-01-27 01:07:15 +01:00
clang-format-bot ddb0522bbf
Apply clang-format to code base 2022-09-22 21:35:26 +03:00
elsid 6ae15f08e0
Avoid chained operator() calls to prevent formatting issues 2022-09-12 16:48:15 +02:00
Project579 c226b35f1f Fix some remaining encoding errors due to std::filesystem transition. 2022-09-11 14:41:20 +02:00
Project579 5456ef1d50 Add new functions and overloads to support std::u8string and std::filesystem::path. 2022-09-11 14:41:20 +02:00
Project579 a13709c510 Replace implicit convertions from std::filesystem::path to std::string with correctly converting functions. 2022-09-11 14:41:20 +02:00
Project579 dec3f24375 filesystem: configurationmanager: Store file path tokens as std::u8string. 2022-09-11 14:41:20 +02:00
Project579 78ab009d5c Add required overloads to logger for handling unicode paths, also add conversion functions from std::filesystem::path to std::string without losing unicode data. 2022-09-11 14:41:20 +02:00
Project579 864112b5db Fixed Windows build when using MSVC 14.26 and MacOS build. 2022-09-11 14:41:20 +02:00
Project579 e5c417c968 Make sure all paths are passed as std::filesystem::path instead of std::string where possible. 2022-09-11 14:41:15 +02:00
Project579 35fe214588 Updated components/misc/timeconvert.hpp to fix the Android build. 2022-09-11 02:20:01 +02:00
Project579 cf0af87c80 Revert changes from "4c8e1ccf - Fixed windows build and updated tests to reflect changes of escape character from "&" to "\"" in "apps/openmw_test_suite/openmw/options.cpp" 2022-09-11 02:19:07 +02:00
Project579 4bb07282c9 Replace all remaining occurrences of boost::filesystem with std::filesystem. 2022-09-11 02:19:00 +02:00
Petr Mikheev dc3ba3a75b Fix #6862 2022-07-09 23:19:38 +02:00
elsid 5891d58f63
Fix C4456 msvc warning
declaration of 'it' hides previous local declaration
2022-07-01 18:47:44 +02:00
elsid 10fbf170a2
Reduce number of includes for boost/program_options 2022-06-25 18:32:10 +02:00
Petr Mikheev c7ab67c2c1 Allow relative paths in openmw.cfg; support --replace=config. 2022-04-28 00:39:41 +02:00
Petr Mikheev 5f74df75c6 Add default value for `config`. 2022-02-06 23:09:06 +01:00
Petr Mikheev ac5cd6c80a Add default value for `user-data` in openmw.cfg 2022-02-06 21:07:14 +01:00
Petr Mikheev 6084dbfc3a Add a warning if replace==config is used. 2022-02-03 00:07:30 +01:00
Petr Mikheev 5b23ba3faf Fix `defaulted` in ConfigurationManager::mergeComposingVariables 2022-02-02 23:47:11 +01:00
Petr Mikheev 9c1ff16b62 Add config variable `user-data="?userdata?"`. Allows to override paths to saves and screenshots. 2022-02-02 23:47:11 +01:00
Petr Mikheev 5ff2fc55ac Make ConfigurationManager::getUserConfigPath to return the actual config path where the settings, logs, and Lua storage are stored. 2022-02-02 23:47:11 +01:00
Petr Mikheev 5ca56a4f8a New option "config" for specifying additional config directories. 2022-02-02 23:47:11 +01:00
AnyOldName3 b991263a92 Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89062 2021-11-29 20:16:49 +00:00
AnyOldName3 84d6de3eba Parse paths with boost rules when it's quoted, but use the string verbatim when it's not 2021-11-21 19:51:02 +00:00
AnyOldName3 8fb0b5846e Allow paths with trailing data, emmitting a warning 2021-11-14 00:22:44 +00:00
AnyOldName3 9be606a40d Finish removing old Escape classes 2021-10-17 23:40:34 +01:00
AnyOldName3 1b83b08d80 Merge remote-tracking branch 'upstream/master' into detain-hash
Tests which no longer work are commented out.
Some of these don't work because they're effectively testing for the
presence of bugs in the old implementation.
Others don't work because we're no longer accidentally disabling the
boost::program_options feature where it generates an error if only part
of a token gets consumed.
These will be fixed by later commits.
2021-10-10 23:50:50 +01:00
AnyOldName3 af0d399103 Purge all uses of Escape Hash types 2021-10-09 01:49:08 +01:00
AnyOldName3 e382f71aea Add implementation of config file parser lifted from Boost 2021-10-07 00:39:23 +01:00
elsid 035307b012
Add tests for openmw options
In attempt to document current behaviour. Add commented out checks as desired
behaviour.
2021-10-05 22:51:12 +02:00
AnyOldName3 4727ae4b3b Make it possible to opt out of composing variables 2021-08-01 02:47:10 +01:00
AnyOldName3 5869ac71e3 Merge all composing variables, not just those in destination already
This resolves a regression where the local openmw.cfg doesn't exist, so
we fall back to the global openmw.cfg, but because we've not loaded
anything from the local openmw.cfg, there are no variables with which to
merge.
2020-10-28 00:36:49 +00:00
AnyOldName3 8b28b6e55e Compose BSA, context and script blacklist lists
These would only take their value from the highest priority source, so
specifying `openmw --content anExtraEsp.esp` would override all the
content files in the user cfg file, and the user cfg file would override
any in the global/local one.
2020-10-23 01:58:43 +01:00
AnyOldName3 fca8634b74 Remove debugging lines 2020-10-23 01:46:49 +01:00
AnyOldName3 cf81f1bbb7 Make composing variables compose in the expected order 2020-10-23 01:41:28 +01:00
AnyOldName3 6c311f4a3d Partially revert 3a912485
While it solved the bug it was supposed to, it caused a regression where
the user config could no longer override the global config.
2020-10-22 21:38:22 +01:00