Commit d866f528 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

This should fix import on win32

parent 687c0aa6
......@@ -115,8 +115,10 @@ shared_ptr<BelCardList> BelCardParser::parse(const string &input) {
}
shared_ptr<BelCardList> BelCardParser::parseFile(const string &filename) {
ifstream istr(filename);
if (!istr.is_open()) {
ifstream istr;
istr.open(filename, ifstream::binary);
if (!istr.is_open() || istr.fail()) {
cerr << "[belcard] Couldn't open file " << filename << endl;
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment