mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-05 23:45:13 +00:00
Drop use of tempfiles when loading compressed files.
Also simplified .zga texture and .aqs savegame loading. Dropped support for "crunched" .sav files (those were never used), and the corresponding crunch functions. To be done: Temp files are still used when compressing files, will address this in a later commit.
This commit is contained in:
parent
321a65a9fb
commit
75e7b137d6
11 changed files with 914 additions and 227 deletions
|
@ -993,6 +993,11 @@ bool TiXmlDocument::LoadFile( FILE* file, TiXmlEncoding encoding )
|
|||
return false;
|
||||
}
|
||||
|
||||
return LoadMem(buf, length, encoding);
|
||||
}
|
||||
|
||||
bool TiXmlDocument::LoadMem( char* buf, long length, TiXmlEncoding encoding )
|
||||
{
|
||||
// Process the buffer in place to normalize new lines. (See comment above.)
|
||||
// Copies from the 'p' to 'q' pointer, where p can advance faster if
|
||||
// a newline-carriage return is hit.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue