mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
*** empty log message ***
This commit is contained in:
parent
f29c43153c
commit
71de8ed915
@ -91,6 +91,8 @@ initiate(Filename &source_file, const Filename &rel_path) {
|
|||||||
if (_mfile != NULL)
|
if (_mfile != NULL)
|
||||||
delete _mfile;
|
delete _mfile;
|
||||||
_mfile = new Multifile;
|
_mfile = new Multifile;
|
||||||
|
_buffer_start = _buffer->_buffer;
|
||||||
|
_buffer_size = _source_buffer_length;
|
||||||
return ES_success;
|
return ES_success;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,13 +116,9 @@ run(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Write to the out file
|
// Write to the out file
|
||||||
char *start = _buffer->_buffer;
|
if (_mfile->write(_buffer_start, _buffer_size, _rel_path) == true) {
|
||||||
int size = _source_buffer_length;
|
|
||||||
if (_mfile->write(start, size, _rel_path) == true) {
|
|
||||||
_read_stream.close();
|
_read_stream.close();
|
||||||
_source_file.unlink();
|
_source_file.unlink();
|
||||||
delete _mfile;
|
|
||||||
_mfile = NULL;
|
|
||||||
return ES_success;
|
return ES_success;
|
||||||
}
|
}
|
||||||
return ES_ok;
|
return ES_ok;
|
||||||
|
@ -51,6 +51,8 @@ private:
|
|||||||
int _source_buffer_length;
|
int _source_buffer_length;
|
||||||
Filename _source_file;
|
Filename _source_file;
|
||||||
Filename _rel_path;
|
Filename _rel_path;
|
||||||
|
char *_buffer_start;
|
||||||
|
int _buffer_size;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user