Commit Graph

65 Commits (master)

Author SHA1 Message Date
Alexei Kotov 78eda530ac Simplify material file pointer acrobatics 3 weeks ago
psi29a 023c0f7a46 Merge branch 'vfs_normalized_path_6' into 'master'
Use normalized path for music related functions

See merge request OpenMW/openmw!4038
4 weeks ago
Alexei Kotov 4e3d45db1b Deduplicate file handling in niftest 4 weeks ago
Alexei Kotov 1d65aaee71 Formatting 4 weeks ago
Alexei Kotov 4a03555d53 Add BGEM/BGSM file support to niftest 4 weeks ago
elsid e11a5a4352
Use normalized path for SoundManager::playPlaylist 4 weeks ago
elsid 79b73e45a1
Replace std::filesystem::path by std::string and std::string_view in nif code
It's used only for error reporting.
2 months ago
elsid 5859fd464c
Add option to disable precompiled headers
To be able to use ccache.

Also fix compilation errors appeared due to absence of precompiled
headers.
2 months ago
elsid df077a2524
Simplify and reduce code duplication for BSA archive creation 3 months ago
psi29a 7450b11402 Merge branch 'vfs_normalized_path_1' into 'master'
Use normalized path for VFS manager and RecursiveDirectoryIterator

See merge request OpenMW/openmw!3806
4 months ago
Alexei Kotov 29a40c212f Support parsing KF files in niftest
Mention BA2 support in help messages
4 months ago
elsid 70061329a1
Return Path::Normalized from RecursiveDirectoryIterator 4 months ago
jvoisin ec6ac8058b Merge branch 'vfs_normalized_path' into 'master'
Add type for normalized VFS path and use for VFS::Manager file map key

See merge request OpenMW/openmw!3781
4 months ago
Evil Eye 27fa411f4f Convert strings in nif files to utf8 4 months ago
elsid a2147d70cc
Use forward declaration for some VFS types
This will allow to save on preprocessed code size in the future changes.
4 months ago
Alexei Kotov b96600a7fb Make niftest exceptions more informative 6 months ago
Alexei Kotov 3be0ee824a niftest updates
Properly read archives within the supplied data directories
Don't print quote marks redundantly
Reduce code duplication
Improve logging
6 months ago
Alexei Kotov 1e3da5516a Fix BA2 handling in niftest 8 months ago
Andrei Kortunov c50769c8c5 Catch filesystem exceptions 10 months ago
AnyOldName3 34fcfb63cf Eliminate redundant version checks 10 months ago
Evil Eye eeda48ec50 Drop support for --fs-strict 11 months ago
elsid 1857d8a68c
Use target_compile_options to add --coverage 1 year ago
elsid cc066efa11
Fix identation in CMakeLists.txt 1 year ago
Cédric Mocquillon d30deef4b5 Use the right archive type to load bsa according to their type 1 year ago
Cédric Mocquillon 974799c011 Handle DX10 case of ba2 format 1 year ago
Cédric Mocquillon c1fbe90953 Handle GNRL case of ba2 format 1 year ago
elsid d20b05c7fb
Support reading specific nif files from archive by niftest 1 year ago
elsid 2c43a8558a
Add option to disable debug log for unsupported nif files
It becomes quite extensive and not very useful when loading oblivion content
files.
1 year ago
elsid ac5f22445e
Support compressed BSA archives by niftest 1 year ago
elsid 1a2c56fefb
Fix checking for file extension in niftest 1 year ago
jvoisin cd29c181cf Another pass with IWYU 2 years ago
elsid f2fb3d6de8
Separate NIFFileReader from NIFFile
NIFFile might not always be created from a file or stream containing NIF data.
Basically there are 2 different responsibilities for this class:
1. Read NIF file
2. Provide input for nifosg and bulletnifloader.

Remove no longer needed NIFFileMock since the state of NIFFfile can be
initialized independently from reading NIF file.
2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
elsid 4698a4cd2d
Use raw string literals to format command usage messages 2 years ago
elsid 6ae15f08e0
Avoid chained operator() calls to prevent formatting issues 2 years ago
Project579 4e428dee12 Update some settings that accept paths by "std::string" to accept them as "std::filesystem::path" instead. 2 years ago
Project579 a13709c510 Replace implicit convertions from std::filesystem::path to std::string with correctly converting functions. 2 years ago
Project579 6bf4c7a04f Upgraded "input-file" command line option to Files::MaybeQuotedPath from std::string to allow unicode characters on Windows. 2 years ago
Project579 e5c417c968 Make sure all paths are passed as std::filesystem::path instead of std::string where possible. 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
elsid 9398e97600
Avoid manual memory management for VFS archives 2 years ago
elsid 7e6c13630a Use target_precompile_headers for the most expensive headers 2 years ago
jvoisin 34ae6e8221 Remove dependency on boost::filesystem in bsatool and niftest CMakeLists.txt 2 years ago
jvoisin 472af7c164 Remove boost::filesystem from niftest 2 years ago
elsid 5eb8c4aebe
Avoid redundant conversion to const char* and use make_shared 2 years ago
Bret Curtis 74e7cfc023 remove unused includes: part1
remove unused imports: part2

revert one tidy we will keep for c++20
2 years ago
Evil Eye 751e8cf76b Do a bounds check before calling functions defined in cctype 3 years ago
Cédric Mocquillon d4e26746a3 Use recurse subdirectory iterator to iterate over the VFS without exposing internal details 3 years ago
Thunderforge ded7bd92e6 Using auto keyword in most apps
Detected by clang-tidy's modernize-use-auto
3 years ago
Thunderforge 339d347aea Fixing performance-faster-string-find issues
This addresses the Clang Tidy check [performance-faster-string-find](https://clang.llvm.org/extra/clang-tidy/checks/performance-faster-string-find.html).
3 years ago