mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-05-31 19:51:20 +00:00
Changed resource cache to save with the basic binary serializer to improve read/write time
This commit is contained in:
parent
bfe541a35d
commit
932e2bff7a
Binary file not shown.
@ -121,7 +121,7 @@ bool CResourceStore::LoadDatabaseCache()
|
||||
mpDatabaseRoot = new CVirtualDirectory(this);
|
||||
|
||||
// Load the resource database
|
||||
CBinaryReader Reader(Path, FOURCC('CACH'));
|
||||
CBasicBinaryReader Reader(Path, FOURCC('CACH'));
|
||||
|
||||
if (!Reader.IsValid() || !SerializeDatabaseCache(Reader))
|
||||
{
|
||||
@ -147,7 +147,7 @@ bool CResourceStore::SaveDatabaseCache()
|
||||
{
|
||||
TString Path = DatabasePath();
|
||||
|
||||
CBinaryWriter Writer(Path, FOURCC('CACH'), 0, mGame);
|
||||
CBasicBinaryWriter Writer(Path, FOURCC('CACH'), 0, mGame);
|
||||
|
||||
if (!Writer.IsValid())
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user