mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
c563f8180c
commit
26d7cb8ccb
@ -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;
|
||||
}
|
||||
|
@ -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 = "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user