Subversion Repositories spk

Rev

Rev 111 | Rev 119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 111 Rev 118
Line 94... Line 94...
94
		if ( create ) created = true;
94
		if ( create ) created = true;
95
		else		  return CATERR_NOCATFILE;
95
		else		  return CATERR_NOCATFILE;
96
	}
96
	}
97
 
97
 
98
	if ( created ) {
98
	if ( created ) {
99
		m_fCatFile.Open(catfile);
99
		m_fCatFile.open(catfile);
100
		m_fDatFile.Open(datfile);
100
		m_fDatFile.open(datfile);
101
		m_bCreate = true;
101
		m_bCreate = true;
102
		return CATERR_CREATED;
102
		return CATERR_CREATED;
103
	}
103
	}
104
 
104
 
105
	// find the file size
105
	// find the file size
Line 141... Line 141...
141
		readFiles ();
141
		readFiles ();
142
	}
142
	}
143
 
143
 
144
	m_sAddonDir = addon;
144
	m_sAddonDir = addon;
145
 
145
 
146
	m_fCatFile.Open ( catfile );
146
	m_fCatFile.open ( catfile );
147
 
147
 
148
	if ( readtype != CATREAD_JUSTCONTENTS ) {
148
	if ( readtype != CATREAD_JUSTCONTENTS ) {
149
		m_fDatFile.Open ( datfile );
149
		m_fDatFile.open ( datfile );
150
 
150
 
151
		// check the file size matches
151
		// check the file size matches
152
		long compare = 0;
152
		long compare = 0;
153
		if ( m_fDatFile.startRead() ) {
153
		if ( m_fDatFile.startRead() ) {
154
			compare = m_fDatFile.fileSize();
154
			compare = m_fDatFile.fileSize();