mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
file access cross-platform compatibility fixes
This commit is contained in:
@@ -761,10 +761,7 @@ texture_manager::create( std::string Filename, bool const Loadnow ) {
|
||||
}
|
||||
|
||||
erase_extension( Filename );
|
||||
// change slashes to cross-platform
|
||||
std::replace(
|
||||
std::begin( Filename ), std::end( Filename ),
|
||||
'\\', '/' );
|
||||
replace_slashes( Filename );
|
||||
|
||||
std::vector<std::string> extensions { { ".dds" }, { ".tga" }, { ".bmp" }, { ".ext" } };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user