From: Laszlo T. <ave...@us...> - 2004-08-10 20:02:15
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/BIFImporter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20381/BIFImporter Modified Files: BIFImp.cpp Log Message: Fixed the progressbar, drawing the other half of the gauge at uncompressing of the .sav file Index: BIFImp.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/BIFImporter/BIFImp.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** BIFImp.cpp 5 Aug 2004 21:30:01 -0000 1.17 --- BIFImp.cpp 10 Aug 2004 20:02:05 -0000 1.18 *************** *** 54,57 **** --- 54,60 ---- return GEM_ERROR; } + int All = compressed->Remains(); + int Current; + if (!All) return GEM_ERROR; do { ieDword fnlen, complen, declen; *************** *** 73,78 **** core->FreeInterface( comp ); fclose( in_cache ); } ! while(compressed->Remains()); return GEM_OK; } --- 76,85 ---- core->FreeInterface( comp ); fclose( in_cache ); + Current = compressed->Remains(); + //starting at 50% going up to 100% + core->LoadProgress( 50+(All-Current)*50/All ); + printf("LoadProgress: %d\n", 50+(All-Current)*50/All ); } ! while(Current); return GEM_OK; } |