Commit Graph

262 Commits (4db96186d201dc86b6f3699b0315058109576ef2)

Author SHA1 Message Date
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
ζeh Matt 2014ea40b9
Use ScopedHandle for File::Handle 3 years ago
ζeh Matt ce556ba0cc
Remove obsolete LowLevelFile 3 years ago
psi29a 7c442926f8 Merge branch 'platform-file' into 'master'
Move platform specific file code into platform and cleanup LowLevelFile

See merge request OpenMW/openmw!2143
3 years ago
elsid 6c8ed4d19c
Move Files::IStreamPtr alias to a separate header
To avoid transitive include of Windows.h all over the engine.
3 years ago
ζeh Matt 1b70ff775d
Move platform specific file code into platform and cleanup LowLevelFile 3 years ago
jvoisin 2ef2e93a46 Merge branch 'collection-lowercase' into 'master'
Makes key inside Collection::getCollection use lowercase

Closes #6483

See merge request OpenMW/openmw!2135
3 years ago
Matt 888d009a1e Apply 1 suggestion(s) to 1 file(s) 3 years ago
Matt 32d50765ab Apply 1 suggestion(s) to 1 file(s) 3 years ago
Igor Fedosov 68887e79a0 Makes key inside Collection::getCollection use lowercase 3 years ago
Petr Mikheev dc3ba3a75b Fix #6862 3 years ago
elsid bef15edf0b
Remove redundant ostream, istream, iostream and sstream includes
* Replace by std::to_string and operator+ where possible.
* Move the code requiring to include <sstream> from .hpp to .cpp files.
3 years ago
Andrei Kortunov 5d94a94a98 Use a Boost API to resolve symlinks instead of low-level code 3 years ago
elsid 5891d58f63
Fix C4456 msvc warning
declaration of 'it' hides previous local declaration
3 years ago
elsid 7e6c13630a Use target_precompile_headers for the most expensive headers 3 years ago
elsid 10fbf170a2
Reduce number of includes for boost/program_options 3 years ago
AnyOldName3 6a5ad4ca43 Fix regression from https://gitlab.com/OpenMW/openmw/-/merge_requests/1776 3 years ago
jvoisin a204f392c9 Minor simplification in multidircollection.cpp 3 years ago
Petr Mikheev c7ab67c2c1 Allow relative paths in openmw.cfg; support --replace=config. 3 years ago
elsid 0dcb1f5aac
Fix build on Windows
Use wrapper header over Windows.h to undefine far and near in a single place.
3 years ago
elsid 94c1d0cced
Use unique_ptr to store istream 3 years ago
elsid c94d8be7bf
Add generic StreamWithBuffer owning the underlying buffer 3 years ago
elsid 9d6d0c6ffb
Move ConstrainedStreamBuf into separate file 3 years ago
elsid fbc853804d
Fix recover from errors in Files::getHash 3 years ago
elsid b09570692e
Use ifstream for ESMReader
ESMReader reads the whole file, there is no need in the ConstrainedFileStream.
3 years ago
elsid 5eb8c4aebe
Avoid redundant conversion to const char* and use make_shared 3 years ago
Petr Mikheev 5f74df75c6 Add default value for `config`. 3 years ago
Petr Mikheev ac5cd6c80a Add default value for `user-data` in openmw.cfg 3 years ago
Petr Mikheev 6084dbfc3a Add a warning if replace==config is used. 3 years ago
Petr Mikheev 5b23ba3faf Fix `defaulted` in ConfigurationManager::mergeComposingVariables 3 years ago
Petr Mikheev 9c1ff16b62 Add config variable `user-data="?userdata?"`. Allows to override paths to saves and screenshots. 3 years ago
Petr Mikheev 5ff2fc55ac Make ConfigurationManager::getUserConfigPath to return the actual config path where the settings, logs, and Lua storage are stored. 3 years ago
Petr Mikheev 5ca56a4f8a New option "config" for specifying additional config directories. 3 years ago
elsid ecbcdd0e54
Add missing initialization 3 years ago
AnyOldName3 8fc09f8c51 Merge remote-tracking branch 'upstream/master' into detain-hash-selectively-reluctant
Merge conflicts included:
* One setting being removed (branch had changed its type).
* One setting's description being changed (branch had changed its type).
* List of files in components/files was changed both upstream and on the
  branch.
* Upstream had changed something in a file the branch deletes.
3 years ago
AnyOldName3 b991263a92 Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89062 3 years ago
AnyOldName3 5e9d460032 Remove redundant conversion operator 3 years ago
AnyOldName3 84d6de3eba Parse paths with boost rules when it's quoted, but use the string verbatim when it's not 3 years ago
elsid a665a38aca
Use MurmurHash3_x64_128 for file hash 3 years ago
Evil Eye 751e8cf76b Do a bounds check before calling functions defined in cctype 3 years ago
AnyOldName3 8fb0b5846e Allow paths with trailing data, emmitting a warning 3 years ago
elsid d7041613ef
Store BulletShape source file name and content hash 3 years ago
Bo Svensson 1960e976e2
refactors stringops.hpp (#3192)
With this PR we refactor `StringUtils::replaceAll` to accept `string_view` as suggested in a code comment. In addition, while we are touching this rebuild happy file, we slim it down a bit by moving a few sparingly used functions elsewhere.
3 years ago
AnyOldName3 9be606a40d Finish removing old Escape classes 3 years ago
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.
3 years ago
AnyOldName3 af0d399103 Purge all uses of Escape Hash types 3 years ago
AnyOldName3 cf3596fbb4 Add copyright preamble 3 years ago
AnyOldName3 e382f71aea Add implementation of config file parser lifted from Boost 3 years ago
elsid 035307b012
Add tests for openmw options
In attempt to document current behaviour. Add commented out checks as desired
behaviour.
3 years ago
AnyOldName3 4727ae4b3b Make it possible to opt out of composing variables 3 years ago