Commit Graph

87 Commits (8cf431aeb2b80907e25d941ee6078da0236720e7)

Author SHA1 Message Date
elsid 258ae9d98e
Add settings index to provide lookup by category and name 2 years ago
elsid 35f4bcd31e
Run openmw_settings_access_benchmark in CI
Add benchmarks to access 2 and 3 settings. Use settings with max memory address
distance assuming Settings::Values is single memory location object.

Use settings-default.cfg from the source code repository to initialize settings.
2 years ago
elsid 0a678224cd
Add category to error message 2 years ago
elsid 05d09d9927
Fix msvc warning 2 years ago
elsid 8e487c283c
Store default settings values 2 years ago
elsid b8525e8e3d
Fix code format 2 years ago
psi29a ed4e75df65 Merge branch 'fix_includes' into 'master'
Add missing and remove redundant includes

See merge request OpenMW/openmw!2938
2 years ago
fall-leaf cc7e29c9a2 opensuse build fix 2 years ago
elsid b33d12b8e1
Add missing and remove redundant includes 2 years ago
elsid 8f84431840
Do not initialize settings storage for editor 2 years ago
elsid bdc2eb5250
Check only original default settings
When more than 1 user config layers are used we still want to check only the
first layer of default settings loaded from settings-default.cfg.
2 years ago
elsid db7d0adfe8
Define settings values based on documentation
Using docs/source/reference/modding/settings/*.rst and
files/settings-default.cfg files content.
2 years ago
elsid 3bad40153c
Define typed settings storage with single time initialization
To make sure loaded settings have valid values doing the check once per loading.
And to make access more efficient.
2 years ago
Shi Han a90e3b8c3b Move from std::atoi to std::from_char 2 years ago
jvoisin 3cbf1dc042 First pass with include-what-you-use 2 years ago
elsid 624d8bc931
Support unsigned settings values 2 years ago
elsid 2388b21f63
Use std::from_chars to parse settings integral numbers and handle errors 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
Project579 c226b35f1f Fix some remaining encoding errors due to std::filesystem transition. 2 years ago
Project579 c3175e371a Fix YAML::LoadFile mangling Unicode paths in Windows. 2 years ago
Project579 a13709c510 Replace implicit convertions from std::filesystem::path to std::string with correctly converting functions. 2 years ago
Project579 e5c417c968 Make sure all paths are passed as std::filesystem::path instead of std::string where possible. 2 years ago
Project579 4bb07282c9 Replace all remaining occurrences of boost::filesystem with std::filesystem. 2 years ago
Evil Eye 2222b47e3d Make Settings::Manager::getString return a reference 2 years ago
elsid f99ed6f1db
Split components/misc/stringops.hpp into multiple headers
Replace all ciEqual overloads with one having std::string_view as argument.
2 years ago
Andrei Kortunov 8ff64ca176 Add a default way to store arrays in the settings.cfg 2 years ago
elsid e03e0db55d
Use std::string_view to access settings
There is no more need to copy std::string into a pair when need to call
std::map::find.

Remove unused resetPendingChange function.
3 years ago
jvoisin cb226e00f9 Remove some more of boost:: 3 years ago
jvoisin 4e4debb1cb Remove even more of boost::filesystem 3 years ago
cody glassman 6093cb5f2c postprocessing lua api extensions 3 years ago
Petr Mikheev 7f8d433775 Initialize log recorder right after initializing the logging 3 years ago
Matt 395de4b251 Refactor PostProcessor code 3 years ago
cody glassman 04843fed6d moddable post-processing pipeline 3 years ago
cody glassman ad139f2f9a rename to windowed fullscreen 3 years ago
cody glassman 05901a2480 add borderless windows, deprecate fullscreen mode 3 years ago
Evil Eye a64979e25d Replace empty std::string assignments 3 years ago
elsid 7038c82690
Configure mav navmeshdb file size from the launcher 3 years ago
Martin Otto 96e48e5492 Make settings loader differentiate between engine and editor (fixes #6658). 3 years ago
Petr Mikheev a453e5c198 Reuse the same code to load settings in apps/openmw, apps/launcher, apps/opencs 3 years ago
Petr Mikheev 1bcc4a8bcc Read settings.cfg from all active config dirs 3 years ago
elsid 01c712d5f1
Split navigator settings into subtypes
Mostly to distinguish settings that affect properties of the generated navmesh.
3 years ago
OnlyForF1 c5b33185b5 Recalculate the Projection Matrix every time the window is resized. 3 years ago
jvoisin aec3c74fa5 Sprinkle some [[noreturn]] where possible 4 years ago
Thunderforge 89950e5528 Preventing type conversion of double to float for objectPagingMinSize 4 years ago
AnyOldName3 4cedb3549b Decode base64-packed settings files 4 years ago
AnyOldName3 081650a2e5 Integrate Base64 library with build 4 years ago
AnyOldName3 09f39b29f0 Load defaults.bin instead of settings-default.cfg. Do not decode yet. 4 years ago
AnyOldName3 92325976e9 Update documentation to refer to defaults.bin 4 years ago
Petr Mikheev 8cdc7031f5 Support vectors in settings.cfg 4 years ago
Capostrophic 69219c18a7 Make sure blank lines at the end of settings.cfg don't disappear 5 years ago