mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 01:07:47 +00:00
fix a strange issue where some stl implementations would produce an invalid path where 2 or more / are present sequentially in a path
This commit is contained in:
parent
29afcfe487
commit
7ccc29a6ce
1 changed files with 2 additions and 2 deletions
4
deps/datReader/DatCat.cpp
vendored
4
deps/datReader/DatCat.cpp
vendored
|
@ -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<Index>( new Index( basePath / "//ffxiv" / ( prefix + ".index" ) ) );
|
||||
m_index = std::unique_ptr<Index>( 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<Dat>( new Dat( basePath / "//ffxiv" / ( prefix + ".dat" + std::to_string( i ) ), i ) ) );
|
||||
m_dats.emplace_back( std::unique_ptr<Dat>( new Dat( basePath / "ffxiv" / ( prefix + ".dat" + std::to_string( i ) ), i ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue