Load() methods, to allow error checking

This commit is contained in:
Glenn Maynard
2005-05-21 00:40:18 +00:00
parent 9d7c8980d8
commit 8f68a555a6
2 changed files with 50 additions and 16 deletions
+5 -1
View File
@@ -11,8 +11,12 @@ struct end_central_dir_record;
class RageFileDriverZip: public RageFileDriver
{
public:
RageFileDriverZip();
RageFileDriverZip( CString sPath );
RageFileDriverZip( RageFileBasic *pFile );
bool Load( const CString &sPath );
bool Load( RageFileBasic *pFile );
virtual ~RageFileDriverZip();
RageFileBasic *Open( const CString &sPath, int iMode, int &iErr );
@@ -32,7 +36,7 @@ private:
* around in it when reading files. */
RageMutex m_Mutex;
void ParseZipfile();
bool ParseZipfile();
bool ReadEndCentralRecord( int &total_entries_central_dir, int &offset_start_central_directory );
int ProcessCdirFileHdr( FileInfo &info );
bool SeekToEndCentralRecord();