mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 19:09:20 +02:00
backslash/slash fixes, again
This commit is contained in:
@@ -304,9 +304,7 @@ extract_value( bool &Variable, std::string const &Key, std::string const &Input,
|
||||
}
|
||||
|
||||
bool FileExists( std::string const &Filename ) {
|
||||
std::string fn = Filename;
|
||||
std::replace(fn.begin(), fn.end(), '\\', '/');
|
||||
std::ifstream file( fn );
|
||||
std::ifstream file( Filename );
|
||||
return( true == file.is_open() );
|
||||
}
|
||||
|
||||
@@ -314,7 +312,6 @@ bool FileExists( std::string const &Filename ) {
|
||||
std::time_t
|
||||
last_modified( std::string const &Filename ) {
|
||||
std::string fn = Filename;
|
||||
std::replace(fn.begin(), fn.end(), '\\', '/');
|
||||
struct stat filestat;
|
||||
if( ::stat( fn.c_str(), &filestat ) == 0 )
|
||||
return filestat.st_mtime;
|
||||
|
||||
Reference in New Issue
Block a user