linux support

This commit is contained in:
milek7
2017-07-31 00:25:19 +02:00
parent e7623fa18f
commit f7459f3434
64 changed files with 967 additions and 602 deletions

View File

@@ -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);