X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.cpp;h=03519085e9111f436a234b62cee11c528d940c99;hb=253f7b2713969c4982a3149c55e378db51d7791d;hp=28d7389cb3156fe68e49c09019a86b275f09cb13;hpb=5da604521611a960140b58a2fb0f236c65610b70;p=virtualjaguar diff --git a/src/gui/filethread.cpp b/src/gui/filethread.cpp index 28d7389..0351908 100644 --- a/src/gui/filethread.cpp +++ b/src/gui/filethread.cpp @@ -21,6 +21,7 @@ #include "crc32.h" #include "file.h" #include "filedb.h" +//#include "memory.h" #include "settings.h" #define VERBOSE_LOGGING @@ -139,15 +140,15 @@ void FileThread::HandleFile(QFileInfo fileInfo) uint32 index = FindCRCIndexInFileList(crc); delete[] buffer; - // Here we filter out files *not* in the DB (if configured that way) and - // BIOS files. - if (index == 0xFFFFFFFF) + // Here we filter out files that are *not* in the DB and of unknown type, + // and BIOS files. If desired, this can be overriden with a config option. + if ((index == 0xFFFFFFFF) && (fileType == JST_NONE)) { // If we allow unknown software, we pass the (-1) index on, otherwise... if (!allowUnknownSoftware) return; // CRC wasn't found, so bail... } - else if (romList[index].flags & FF_BIOS) + else if ((index != 0xFFFFFFFF) && romList[index].flags & FF_BIOS) return; //Here's a little problem. When we create the image here and pass it off to FilePicker,