Commit Graph

17 Commits (5d37cb3b74b1e47fef78fdabaedb791091018dc6)

Author SHA1 Message Date
elsid d1ccb4b804
Use normalized path for groundcover 3 months ago
elsid d8189a5aa1
Use normalized path in SceneManager 4 months ago
elsid a49de4b9f1
Do not allow to construct NormalizedView from std::string
To avoid implicit conversion via Normalized which creates NormalizedView from a
temporary Normalized. Mark constructors explicit on purpose so there is no
ambiguity on implicit conversion when there is an overloaded function like:

void f(const Normalized&);
void f(NormalizedView);
5 months ago
elsid e11a5a4352
Use normalized path for SoundManager::playPlaylist 9 months ago
elsid 82931059fd
Make NormalizedView constructor from const char* explicit 9 months ago
elsid ffbeb5ab98
Build localization path using VFS::Path::Normalized 10 months ago
elsid 84adb0a148
Make VFS::Path::Normalized constructor from std::string_view explicit 10 months ago
elsid ec9c829021
Use normalized path for correctSoundPath 10 months ago
elsid 92d57d6e46
Make Normalized constructor from const char* explicit 10 months ago
elsid 062d3e9c00
Add NormalizedView for normalized paths 11 months ago
elsid 1689c59546
Add tests for VFS::Path::Normalized 11 months ago
elsid d549cfd66b
Check path for being normalized 11 months ago
elsid 35d9b18b4c
Add type for normalized VFS path and use for VFS::Manager file map key
This will reduce the number of path normalizations while more places will use
this type. In some cases it also will reduce number of temporary allocations for
new strings.

For now make conversion from and to std::string_view implicit to allow gradual
migration to this type.
12 months ago
Evil Eye f5a20d1e9c Change include guard name 2 years ago
Evil Eye e8ddccaefe Use std::transform 2 years ago
Evil Eye e791d2b498 Fix unit tests 2 years ago
Evil Eye eeda48ec50 Drop support for --fs-strict 2 years ago