mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
additional serial port data output, 3d model load failure caching, minor refactoring and bug fixes
This commit is contained in:
@@ -132,12 +132,7 @@ buffer_manager::create( std::string const &Filename ) {
|
||||
|
||||
auto filename { ToLower( Filename ) };
|
||||
|
||||
auto const dotpos { filename.rfind( '.' ) };
|
||||
if( ( dotpos != std::string::npos )
|
||||
&& ( dotpos != filename.rfind( ".." ) + 1 ) ) {
|
||||
// trim extension if there's one, but don't mistake folder traverse for extension
|
||||
filename.erase( dotpos );
|
||||
}
|
||||
erase_extension( filename );
|
||||
// convert slashes
|
||||
std::replace(
|
||||
std::begin( filename ), std::end( filename ),
|
||||
|
||||
Reference in New Issue
Block a user