From 0c146182123b767c6a435c132a4b1e09645b45c8 Mon Sep 17 00:00:00 2001 From: craftablescience Date: Sat, 20 Jul 2024 01:49:07 -0400 Subject: [PATCH] fix: normalize slashes of stored vpk paths --- src/create.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/create.cpp b/src/create.cpp index a3a28f6..a27f1be 100644 --- a/src/create.cpp +++ b/src/create.cpp @@ -70,7 +70,8 @@ auto createFromRoot( std::string_view root_, std::string_view indexLocation, boo } // relative path - const auto pathRel{ std::filesystem::relative( path, root ).string() }; + auto pathRel{ std::filesystem::relative( path, root ).string() }; + sourcepp::string::normalizeSlashes( pathRel ); auto breaker{ false }; for ( const auto& exclusion : exclusionREs ) {