mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 18:39:18 +02: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) {
|
switch (Type) {
|
||||||
case buffer_FILE: {
|
case buffer_FILE: {
|
||||||
Path.append( Stream );
|
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
|
// content of *.inc files is potentially grouped together
|
||||||
if( ( Stream.size() >= 4 )
|
if( ( Stream.size() >= 4 )
|
||||||
&& ( ToLower( Stream.substr( Stream.size() - 4 ) ) == ".inc" ) ) {
|
&& ( ToLower( Stream.substr( Stream.size() - 4 ) ) == ".inc" ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user