X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilethread.cpp;h=a6ecd3fbd1dcbd3c435e058d3ee6f986286b52ef;hb=25cc16d819c81e08d2e21b57720dd4ea08ae9e25;hp=1f5a5aab51223e50e6d11af57d6a4f6b4c8d3214;hpb=b54bb3c04ba861123e44b7f25fbc859d78627379;p=virtualjaguar diff --git a/src/gui/filethread.cpp b/src/gui/filethread.cpp index 1f5a5aa..a6ecd3f 100644 --- a/src/gui/filethread.cpp +++ b/src/gui/filethread.cpp @@ -18,12 +18,14 @@ #include "settings.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)", "" }, @@ -107,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) { } @@ -121,22 +123,38 @@ FileThread::~FileThread() wait(); } -void 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) { 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