16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 09:59:18 +02:00

file access cross-platform compatibility fixes

This commit is contained in:
tmj-fstate
2018-03-29 03:48:21 +02:00
parent 64dea17e6f
commit 6ffced1d90
12 changed files with 40 additions and 30 deletions

View File

@@ -133,10 +133,7 @@ buffer_manager::create( std::string const &Filename ) {
auto filename { ToLower( Filename ) };
erase_extension( filename );
// convert slashes
std::replace(
std::begin( filename ), std::end( filename ),
'\\', '/' );
replace_slashes( filename );
audio::buffer_handle lookup { null_handle };
std::string filelookup;