mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
linux support
This commit is contained in:
@@ -38,7 +38,8 @@ cParser::cParser( std::string const &Stream, buffertype const Type, std::string
|
||||
{
|
||||
case buffer_FILE:
|
||||
Path.append(Stream);
|
||||
mStream = new std::ifstream(Path.c_str());
|
||||
std::replace(Path.begin(), Path.end(), '\\', '/');
|
||||
mStream = new std::ifstream(Path);
|
||||
break;
|
||||
case buffer_TEXT:
|
||||
mStream = new std::istringstream(Stream);
|
||||
|
||||
Reference in New Issue
Block a user