Commit Graph

24 Commits

Author SHA1 Message Date
Evil Eye 2d33ead98d Fix NormalizedView::stem to include dots 2025-12-12 23:14:57 +01:00
elsid 878f9f8433
Add extension path type 2025-12-08 20:38:23 +01:00
elsid 66923870da
Use normalized path to implement correctResourcePath 2025-12-06 00:12:43 +01:00
elsid 1b362140ae
Remove duplicated and leading slashes in normalizeFilenameInPlace
To be consistent with correctResourcePath.
2025-12-06 00:12:43 +01:00
Evil Eye dbc732231f Allow non-existent techniques to exist 2025-07-03 17:21:50 +02:00
Evil Eye 206d38f3d7 Fix path handling for files in BSAs 2025-07-03 08:46:23 +02:00
elsid 630e815f66
Forbid to use toNormalized for normalized path 2024-11-18 21:21:33 +01:00
elsid d1ccb4b804
Use normalized path for groundcover 2024-10-13 13:27:23 +02:00
elsid d8189a5aa1
Use normalized path in SceneManager 2024-09-13 14:21:49 +02:00
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);
2024-07-20 23:58:48 +02:00
elsid e11a5a4352
Use normalized path for SoundManager::playPlaylist 2024-04-19 22:43:20 +02:00
elsid 82931059fd
Make NormalizedView constructor from const char* explicit 2024-04-19 22:42:04 +02:00
elsid ffbeb5ab98
Build localization path using VFS::Path::Normalized 2024-03-09 00:21:17 +01:00
elsid 84adb0a148
Make VFS::Path::Normalized constructor from std::string_view explicit 2024-03-09 00:21:16 +01:00
elsid ec9c829021
Use normalized path for correctSoundPath 2024-02-24 12:42:36 +01:00
elsid 92d57d6e46
Make Normalized constructor from const char* explicit 2024-02-24 12:42:02 +01:00
elsid 062d3e9c00
Add NormalizedView for normalized paths 2024-02-08 11:48:57 +01:00
elsid 1689c59546
Add tests for VFS::Path::Normalized 2024-02-08 11:42:28 +01:00
elsid d549cfd66b
Check path for being normalized 2024-01-24 21:52:49 +01:00
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.
2024-01-18 00:03:06 +01:00
Evil Eye f5a20d1e9c Change include guard name 2023-06-08 21:10:12 +02:00
Evil Eye e8ddccaefe Use std::transform 2023-06-08 21:10:12 +02:00
Evil Eye e791d2b498 Fix unit tests 2023-06-08 21:10:11 +02:00
Evil Eye eeda48ec50 Drop support for --fs-strict 2023-06-08 21:10:09 +02:00