mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
use binary ifstream in cParser
This commit is contained in:
@@ -35,7 +35,7 @@ cParser::cParser( std::string const &Stream, buffertype const Type, std::string
|
||||
switch (Type) {
|
||||
case buffer_FILE: {
|
||||
Path.append( Stream );
|
||||
mStream = std::make_shared<std::ifstream>( Path );
|
||||
mStream = std::make_shared<std::ifstream>( Path, std::ios_base::binary );
|
||||
// content of *.inc files is potentially grouped together
|
||||
if( ( Stream.size() >= 4 )
|
||||
&& ( ToLower( Stream.substr( Stream.size() - 4 ) ) == ".inc" ) ) {
|
||||
|
||||
Reference in New Issue
Block a user