QTfrontend/util/FileEngine.cpp
changeset 8098 4efee370e2de
parent 8085 6c059add1560
child 8112 d85dc8a8f41c
equal deleted inserted replaced
8095:df61e150eb70 8098:4efee370e2de
    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 }