QDir romDir(vjs.ROMPath);
QFileInfoList list = romDir.entryInfoList();
+/*
+Another thing we'll probably have to do here is check for compressed files and
+decompress/fish around in them to find what we need. :-P
+*/
+
for(int i=0; i<list.size(); i++)
{
if (abort)
+#if 1
+{
+printf("FileThread: Aborting!!!\n");
+#endif
return;
+#if 1
+}
+#endif
QFileInfo fileInfo = list.at(i);
QFile file(romDir.filePath(fileInfo.fileName()));
{
printf("FileThread: Found match [%s]...\n", romList[index].name);
new QListWidgetItem(QIcon(":/res/generic.png"), romList[index].name, listWidget);
-// break;
+ emit FoundAFile(romList[index].crc32);
}
}
}
//
-// Find a CRC in the ROM list. If it's there, return the index, otherwise return $FFFFFFFF
+// Find a CRC in the ROM list (simple brute force algorithm).
+// If it's there, return the index, otherwise return $FFFFFFFF
//
uint32 FileThread::FindCRCIndexInFileList(uint32 crc)
{