Commit Graph

21 Commits (5d37cb3b74b1e47fef78fdabaedb791091018dc6)

Author SHA1 Message Date
elsid c2ac1ce046
Use is_directory member function
To reduce the number of syscalls.
10 months ago
elsid 1b1ed55762
Add context to the errors on recursive iteration over directory
To avoid showing users errors like:
recursive_directory_iterator::operator++: Access is denied.

And show something like this:
Failed to recursively iterate over "/home/elsid/.local/share/openmw/test_data"
when incrementing to the next item from
"/home/elsid/.local/share/openmw/test_data/permission_denied": Permission denied
11 months ago
elsid d147d1d250
Initialize FileSystemArchive index in constructor
It should be initialize for each created archive anyway. There is no good reason
to have additional complexity for lazy initialization. And it helps to catch
problems with specific directory when it's added to the VFS not when all are
added and index is built.
11 months ago
elsid a6657c18cc
Use normalized path for file archives indices 11 months ago
elsid 0d8dc5aabc
Use string_view for VFS lookups 1 year ago
Evil Eye eeda48ec50 Drop support for --fs-strict 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 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
elsid 6c8ed4d19c
Move Files::IStreamPtr alias to a separate header
To avoid transitive include of Windows.h all over the engine.
2 years ago
AnyOldName3 c3d23b4948 Extra hack to make this build on Ubuntu with old CMake 3 years ago
AnyOldName3 bdcac26d8c Fix regressions from https://gitlab.com/OpenMW/openmw/-/merge_requests/1917 3 years ago
jvoisin 6feb92a9bf Remove boost::filesystem from a couple of files 3 years ago
elsid 5eb8c4aebe
Avoid redundant conversion to const char* and use make_shared 3 years ago
Evil Eye b834527813 Add missing include 3 years ago
jvoisin 5375b8e71b Minor optimisation in VFS::FileSystemArchive::listResources
When there is no cache, we can fill the `out`
variable as we create it, instead of creating the
cache, and then iterating it to fill `out`.

Thanks to @cemoc for the help!
4 years ago
CedricMocquillon e378159ea8 Use O(log(n)) search instead of O(n) 4 years ago
unknown 3bf641d3ce Show mesh origin 4 years ago
Andrei Kortunov 1452684d9e Use new logging system for components 6 years ago
scrawl 259919d125
Print a warning when an ambiguous file on a case-sensitive file system is found 7 years ago
scrawl 510375aa63 Add virtual file system (VFS) replacing the low level parts of the old resource system 10 years ago