equal
deleted
inserted
replaced
36 else if (openMode & QIODevice::Append) { |
36 else if (openMode & QIODevice::Append) { |
37 _handler = PHYSFS_openAppend(_filename.toUtf8().constData()); |
37 _handler = PHYSFS_openAppend(_filename.toUtf8().constData()); |
38 } |
38 } |
39 |
39 |
40 else { |
40 else { |
41 qWarning("Bad file open mode: %d", (int)openMode); |
41 qWarning("[PHYSFS] Bad file open mode: %d", (int)openMode); |
42 } |
42 } |
43 |
43 |
44 if (!_handler) { |
44 if (!_handler) { |
45 qWarning("Failed to open %s, reason: %s", _filename.toUtf8().constData(), PHYSFS_getLastError()); |
45 qWarning("[PHYSFS] Failed to open %s, reason: %s", _filename.toUtf8().constData(), PHYSFS_getLastError()); |
46 return false; |
46 return false; |
47 } |
47 } |
48 |
48 |
49 return true; |
49 return true; |
50 } |
50 } |