backslash/slash fixes, again

This commit is contained in:
milek7
2018-03-26 21:22:20 +02:00
parent 6f62297e31
commit bc2184966f
18 changed files with 42 additions and 40 deletions

View File

@@ -26,7 +26,6 @@ openal_buffer::openal_buffer( std::string const &Filename ) :
si.format = 0;
std::string file = Filename;
std::replace(file.begin(), file.end(), '\\', '/');
WriteLog("sound: loading file: " + file);
@@ -105,10 +104,6 @@ buffer_manager::create( std::string const &Filename ) {
auto filename { ToLower( Filename ) };
erase_extension( filename );
// convert slashes
std::replace(
std::begin( filename ), std::end( filename ),
'\\', '/' );
audio::buffer_handle lookup { null_handle };
std::string filelookup;