mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Merge branch 'milek-dev' into gfx-work
This commit is contained in:
@@ -384,6 +384,14 @@ erase_extension( std::string &Filename ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
erase_leading_slashes( std::string &Filename ) {
|
||||
|
||||
while( Filename[ 0 ] == '/' ) {
|
||||
Filename.erase( 0, 1 );
|
||||
}
|
||||
}
|
||||
|
||||
// potentially replaces backward slashes in provided file path with unix-compatible forward slashes
|
||||
void
|
||||
replace_slashes( std::string &Filename ) {
|
||||
|
||||
Reference in New Issue
Block a user