Changed resource cache to save with the basic binary serializer to improve read/write time

This commit is contained in:
Aruki 2017-07-15 23:19:26 -06:00
parent bfe541a35d
commit 932e2bff7a
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -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;