X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.cpp;h=e3b5ffd48a364ee2a12df75373088f244e1f7721;hb=d207b11e613703aff7d00191c4595b7359f29700;hp=5d0d5834398a6abf1c04d888c3f0bb5b6772903b;hpb=10d7ab1fb217c01030a0b637f9a571c1faf61ede;p=virtualjaguar diff --git a/src/gui/filethread.cpp b/src/gui/filethread.cpp index 5d0d583..e3b5ffd 100644 --- a/src/gui/filethread.cpp +++ b/src/gui/filethread.cpp @@ -17,7 +17,6 @@ #include "filethread.h" -#include #include "crc32.h" #include "file.h" #include "filedb.h" @@ -105,7 +104,7 @@ void FileThread::HandleFile(QFileInfo fileInfo) // ZIP files are special: They contain more than just the software now... ;-) // So now we fish around inside them to pull out the stuff we want. // Probably also need more stringent error checking as well... :-O - fileSize = GetFileFromZIP(fileInfo.filePath().toAscii(), FT_SOFTWARE, buffer); + fileSize = GetFileFromZIP(fileInfo.filePath().toUtf8(), FT_SOFTWARE, buffer); if (fileSize == 0) return; @@ -163,7 +162,7 @@ void FileThread::HandleFile(QFileInfo fileInfo) // See if we can fish out a label. :-) if (haveZIPFile) { - uint32_t size = GetFileFromZIP(fileInfo.filePath().toAscii(), FT_LABEL, buffer); + uint32_t size = GetFileFromZIP(fileInfo.filePath().toUtf8(), FT_LABEL, buffer); //printf("FT: Label size = %u bytes.\n", size); if (size > 0)