From 7ccc29a6ce9b9b0f2255eaa684c5953e3581db86 Mon Sep 17 00:00:00 2001 From: NotAdam Date: Mon, 10 Feb 2020 13:38:53 +1100 Subject: [PATCH] fix a strange issue where some stl implementations would produce an invalid path where 2 or more / are present sequentially in a path --- deps/datReader/DatCat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/datReader/DatCat.cpp b/deps/datReader/DatCat.cpp index 2ce9566f..8bd8e79e 100644 --- a/deps/datReader/DatCat.cpp +++ b/deps/datReader/DatCat.cpp @@ -21,12 +21,12 @@ Cat::Cat( const std::filesystem::path& basePath, uint32_t catNum, const std::str std::string prefix = ss.str() + "0000.win32"; // Creates the index: XX0000.win32.index - m_index = std::unique_ptr( new Index( basePath / "//ffxiv" / ( prefix + ".index" ) ) ); + m_index = std::unique_ptr( new Index( basePath / "ffxiv" / ( prefix + ".index" ) ) ); // For all dat files linked to this index, create it: XX0000.win32.datX for( uint32_t i = 0; i < getIndex().getDatCount(); ++i ) { - m_dats.emplace_back( std::unique_ptr( new Dat( basePath / "//ffxiv" / ( prefix + ".dat" + std::to_string( i ) ), i ) ) ); + m_dats.emplace_back( std::unique_ptr( new Dat( basePath / "ffxiv" / ( prefix + ".dat" + std::to_string( i ) ), i ) ) ); } }