QTfrontend/util/FileEngine.cpp
changeset 9161 b2f02b083374
parent 8714 ab201a62d115
child 9170 7c75643d0b66
equal deleted inserted replaced
9159:3e9d4bbc4053 9161:b2f02b083374
   325         return NULL;
   325         return NULL;
   326 }
   326 }
   327 
   327 
   328 void FileEngineHandler::mount(const QString &path)
   328 void FileEngineHandler::mount(const QString &path)
   329 {
   329 {
       
   330     qDebug(QString("[PHYSFS] Mounting '%1' to '/'").arg(path).toLocal8Bit().data());
   330     PHYSFS_mount(path.toUtf8().constData(), NULL, 0);
   331     PHYSFS_mount(path.toUtf8().constData(), NULL, 0);
   331 }
   332 }
   332 
   333 
   333 void FileEngineHandler::mount(const QString & path, const QString & mountPoint)
   334 void FileEngineHandler::mount(const QString & path, const QString & mountPoint)
   334 {
   335 {
       
   336     qDebug(QString("[PHYSFS] Mounting '%1' to '%2'").arg(path).arg(mountPoint).toLocal8Bit().data());
   335     PHYSFS_mount(path.toUtf8().constData(), mountPoint.toUtf8().constData(), 0);
   337     PHYSFS_mount(path.toUtf8().constData(), mountPoint.toUtf8().constData(), 0);
   336 }
   338 }
   337 
   339 
   338 void FileEngineHandler::setWriteDir(const QString &path)
   340 void FileEngineHandler::setWriteDir(const QString &path)
   339 {
   341 {
       
   342     qDebug(QString("[PHYSFS] Setting write dir to '%1'").arg(path).toLocal8Bit().data());
   340     PHYSFS_setWriteDir(path.toUtf8().constData());
   343     PHYSFS_setWriteDir(path.toUtf8().constData());
   341 }
   344 }
   342 
   345 
   343 void FileEngineHandler::mountPacks()
   346 void FileEngineHandler::mountPacks()
   344 {
   347 {