]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/filethread.cpp
Minor update to debugger; added autoupdating to CPU/MEM windows.
[virtualjaguar] / src / gui / filethread.cpp
index 5d0d5834398a6abf1c04d888c3f0bb5b6772903b..e3b5ffd48a364ee2a12df75373088f244e1f7721 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "filethread.h"
 
-#include <QtGui>
 #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)