mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -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)
|
||||
delete _mfile;
|
||||
_mfile = new Multifile;
|
||||
_buffer_start = _buffer->_buffer;
|
||||
_buffer_size = _source_buffer_length;
|
||||
return ES_success;
|
||||
}
|
||||
|
||||
@ -114,13 +116,9 @@ run(void) {
|
||||
}
|
||||
|
||||
// Write to the out file
|
||||
char *start = _buffer->_buffer;
|
||||
int size = _source_buffer_length;
|
||||
if (_mfile->write(start, size, _rel_path) == true) {
|
||||
if (_mfile->write(_buffer_start, _buffer_size, _rel_path) == true) {
|
||||
_read_stream.close();
|
||||
_source_file.unlink();
|
||||
delete _mfile;
|
||||
_mfile = NULL;
|
||||
return ES_success;
|
||||
}
|
||||
return ES_ok;
|
||||
|
@ -51,6 +51,8 @@ private:
|
||||
int _source_buffer_length;
|
||||
Filename _source_file;
|
||||
Filename _rel_path;
|
||||
char *_buffer_start;
|
||||
int _buffer_size;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user