Commit Graph

102 Commits (master)

Author SHA1 Message Date
elsid 9398e97600
Avoid manual memory management for VFS archives 2 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
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 bd5ccaac3c Followup to 21efb74b58 3 years ago
jvoisin 21efb74b58 Remove even most boost:: 3 years ago
jvoisin 6feb92a9bf Remove boost::filesystem from a couple of files 3 years ago
cody glassman 04843fed6d moddable post-processing pipeline 3 years ago
elsid 5eb8c4aebe
Avoid redundant conversion to const char* and use make_shared 3 years ago
Cédric Mocquillon ff7ad93bac Avoid missusing of CompressedBSAFile with private inheritance 3 years ago
Evil Eye b834527813 Add missing include 3 years ago
Bo Svensson db3d938ee9
cleans up BSAFile (#3177)
We currently build a large map of a BSAFile's contents unused by Open MW. We already map archive contents in VFS. With this PR we remove the map from BSAFile and reimplement its only current use in BSATool.
3 years ago
Bo Svensson 7c50f823d8
devirtualises BSAFile (#3161)
Currently, Open MW's basic file access speed is limited by a peculiar layer of virtualisation in BSAFile's interface. This PR removes such virtualisation by properly separating BSAFile from CompressedBSAFile in low level contexts.
3 years ago
Cédric Mocquillon b676d93e03 Use a pair of iterator to represents a range for directory listing 3 years ago
Cédric Mocquillon c2df0949e2 Change normalizeFilename signature 3 years ago
Cédric Mocquillon d4e26746a3 Use recurse subdirectory iterator to iterate over the VFS without exposing internal details 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
CedricMocquillon d617d66a87 Add file to BSA 4 years ago
Evil Eye 630ec36d1f iterate in reverse order 4 years ago
unknown 3bf641d3ce Show mesh origin 4 years ago
Alexei Dobrohotov 53f91a3aa5
Merge pull request #3018 from akortunov/emplace
Use emplace_back instead of push_back
4 years ago
Andrei Kortunov 065ed5138e Use emplace_back instead of push_back 4 years ago
Andrei Kortunov 8ca3c3b123 Mark overrided methods by override keyword 4 years ago
Bret Curtis 2ab7f903d7 make use of std::make_unique to test that MSVC2015 can handle that 6 years ago
Andrei Kortunov 3032b177a1 Remove redundant includes 6 years ago
Azdul 6aa6b2dc89 Removed TES4 from file names. Correct Git file history / attribution. 6 years ago
Adam.Fandrejewski 777a50cb64 Replaced C++ 14 make_unique with C++ 11 compliant code 6 years ago
Azdul 0c3a3ea241 Strange issue with Linux compilation (<memory> header) 6 years ago
Azdul d55cc4d3ea Linux requires <memory> header 6 years ago
Azdul caa0487c6a Replace raw pointer in BsaArchive with unique_ptr 6 years ago
Azdul b9a7514278 Memory leak fixed. Proper file names in headers. 6 years ago
Azdul 25650e65bf Read any BSA file - detection based on version in BSA header 6 years ago
Andrei Kortunov 1452684d9e Use new logging system for components 6 years ago
scrawl 047c44f265
Ignore duplicate data directories to work around the fallout of (Fixes #3557) 7 years ago
scrawl 259919d125
Print a warning when an ambiguous file on a case-sensitive file system is found 7 years ago
Kyle Cooley d3d04171f9 Fix seg fault, undo changes BsaArchive 7 years ago
Kyle Cooley 8c4b12a603 VFS changes, one VFS and resource system per document.
Added ability to reset a VFS::Manager.
Removed ability to rebuild the index for a VFS::Manager.
Moved VFS creation to CSM::Data.
7 years ago
Kyle Cooley 7914fd5c9c Re-index BSAs 7 years ago
Kyle Cooley d31ed83b54 Preliminary asset reloading 7 years ago
scrawl c4d38bb42d Fix clang analyzer warnings 9 years ago
scrawl df57d4bfba Use a common base class for resource managers
Implement updateCache to delete unreferenced cached objects when they have not been referenced for a while.
9 years ago
scrawl f875597be5 Don't use tolower()
See https://forum.openmw.org/viewtopic.php?f=8&t=3231&p=35968
9 years ago
scrawl d5a738bd39 Apply 27e669296e (locale-unaware tolower) to more code
In particular, the one in VFS::normalizeFilename was affecting cell loading performance.
9 years ago
Alexander "Ace" Olofsson 7d4125d97f Fixes for building with unity build 9 years ago
scrawl 10457c1b28 Include fix 10 years ago
scrawl 68e322f969 Restore data directory verbose output that got lost 10 years ago
scrawl fe15f31f3e Remove strings.h wrapper 10 years ago
scrawl a474c72026 Archive priority fix 10 years ago
scrawl 99e1720980 Add SceneManager and clone utility 10 years ago
scrawl 40fc097722 OpenCS: use the new VFS, restored resource tables 10 years ago
scrawl 510375aa63 Add virtual file system (VFS) replacing the low level parts of the old resource system 10 years ago