Commit Graph

67 Commits (master)

Author SHA1 Message Date
elsid a550a8af36
Use normalized path for KeyframeManager::get 1 month ago
Alexei Kotov 70187bb5ac niftest: parse BTO, BTR, RDT and PSA files 3 months ago
Alexei Kotov 78eda530ac Simplify material file pointer acrobatics 8 months ago
psi29a 023c0f7a46 Merge branch 'vfs_normalized_path_6' into 'master'
Use normalized path for music related functions

See merge request OpenMW/openmw!4038
8 months ago
Alexei Kotov 4e3d45db1b Deduplicate file handling in niftest 8 months ago
Alexei Kotov 1d65aaee71 Formatting 8 months ago
Alexei Kotov 4a03555d53 Add BGEM/BGSM file support to niftest 8 months ago
elsid e11a5a4352
Use normalized path for SoundManager::playPlaylist 8 months ago
elsid 79b73e45a1
Replace std::filesystem::path by std::string and std::string_view in nif code
It's used only for error reporting.
10 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.
10 months ago
elsid df077a2524
Simplify and reduce code duplication for BSA archive creation 10 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
11 months ago
Alexei Kotov 29a40c212f Support parsing KF files in niftest
Mention BA2 support in help messages
11 months ago
elsid 70061329a1
Return Path::Normalized from RecursiveDirectoryIterator 11 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
11 months ago
Evil Eye 27fa411f4f Convert strings in nif files to utf8 12 months ago
elsid a2147d70cc
Use forward declaration for some VFS types
This will allow to save on preprocessed code size in the future changes.
12 months ago
Alexei Kotov b96600a7fb Make niftest exceptions more informative 1 year 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
1 year ago
Alexei Kotov 1e3da5516a Fix BA2 handling in niftest 1 year ago
Andrei Kortunov c50769c8c5 Catch filesystem exceptions 1 year ago
AnyOldName3 34fcfb63cf Eliminate redundant version checks 1 year ago
Evil Eye eeda48ec50 Drop support for --fs-strict 2 years ago
elsid 1857d8a68c
Use target_compile_options to add --coverage 2 years ago
elsid cc066efa11
Fix identation in CMakeLists.txt 2 years ago
Cédric Mocquillon d30deef4b5 Use the right archive type to load bsa according to their type 2 years ago
Cédric Mocquillon 974799c011 Handle DX10 case of ba2 format 2 years ago
Cédric Mocquillon c1fbe90953 Handle GNRL case of ba2 format 2 years ago
elsid d20b05c7fb
Support reading specific nif files from archive by niftest 2 years 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.
2 years ago
elsid ac5f22445e
Support compressed BSA archives by niftest 2 years ago
elsid 1a2c56fefb
Fix checking for file extension in niftest 2 years 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 3 years ago
jvoisin 34ae6e8221 Remove dependency on boost::filesystem in bsatool and niftest CMakeLists.txt 3 years ago
jvoisin 472af7c164 Remove boost::filesystem from niftest 3 years ago
elsid 5eb8c4aebe
Avoid redundant conversion to const char* and use make_shared 3 years ago
Bret Curtis 74e7cfc023 remove unused includes: part1
remove unused imports: part2

revert one tidy we will keep for c++20
3 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