*** empty log message ***

This commit is contained in:
Mike Goslin 2000-12-14 23:41:29 +00:00
parent c563f8180c
commit 26d7cb8ccb
2 changed files with 7 additions and 6 deletions

View File

@ -575,17 +575,18 @@ write(Filename name) {
// Advances the start pointer as it writes.
////////////////////////////////////////////////////////////////////
bool Multifile::
write(char *&start, int &size) {
write(char *&start, int &size, const Filename &rel_path) {
// Make sure we have a complete header first
if (parse_header(start, size) == false)
return false;
while (_num_mfiles > 0) {
if (_current_mfile == (Memfile *)0L)
_current_mfile = new Memfile;
if (_current_mfile->write(start, size) == true) {
while (_num_mfiles > 0) {
if (_current_mfile->write(start, size, rel_path) == true) {
_num_mfiles--;
delete _current_mfile;
_current_mfile->reset();
} else
return false;
}

View File

@ -44,7 +44,7 @@ PUBLISHED:
bool read(Filename &name);
bool write(Filename name);
bool write(char *&start, int &size);
bool write(char *&start, int &size, const Filename &rel_path = "");
bool write_extract(char *&start, int &size, const Filename &rel_path = "");
bool extract(const Filename &name, const Filename &rel_path = "");
void extract_all(const Filename &rel_path = "");