X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.cpp;h=a6ecd3fbd1dcbd3c435e058d3ee6f986286b52ef;hb=25cc16d819c81e08d2e21b57720dd4ea08ae9e25;hp=3d53f92b8dd4a02b85a08e7673e224a0d85a6a56;hpb=3e68f33188872d5754d3765ff140811bcb696c6f;p=virtualjaguar diff --git a/src/gui/filethread.cpp b/src/gui/filethread.cpp index 3d53f92..a6ecd3f 100644 --- a/src/gui/filethread.cpp +++ b/src/gui/filethread.cpp @@ -13,16 +13,19 @@ #include "filethread.h" +#include #include "crc32.h" #include "settings.h" -#include "types.h" +//#include "types.h" +#if 0 struct RomIdentifier { const uint32 crc32; const char name[128]; const char file[128]; }; +#endif RomIdentifier romList[] = { { 0x0509C85E, "Raiden (World)", "" }, @@ -106,7 +109,7 @@ for the future... Maybe box art, screenshots will go as well... */ -FileThread::FileThread(QObject * parent/*= 0*/): QThread(parent), listWidget(NULL), abort(false) +FileThread::FileThread(QObject * parent/*= 0*/): QThread(parent), /*listWidget(NULL),*/ abort(false) { } @@ -120,32 +123,40 @@ FileThread::~FileThread() wait(); } -FileThread::Go(QListWidget * lw) +//void FileThread::Go(QListWidget * lw) +void FileThread::Go(void) { QMutexLocker locker(&mutex); - this->listWidget = lw; +// this->listWidget = lw; start(); } +// +// Here's the thread's actual execution path... +// void FileThread::run(void) { -// mutex.lock(); -// if (abort) -// return; -// mutex.unlock(); - 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