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);
|
mpDatabaseRoot = new CVirtualDirectory(this);
|
||||||
|
|
||||||
// Load the resource database
|
// Load the resource database
|
||||||
CBinaryReader Reader(Path, FOURCC('CACH'));
|
CBasicBinaryReader Reader(Path, FOURCC('CACH'));
|
||||||
|
|
||||||
if (!Reader.IsValid() || !SerializeDatabaseCache(Reader))
|
if (!Reader.IsValid() || !SerializeDatabaseCache(Reader))
|
||||||
{
|
{
|
||||||
|
@ -147,7 +147,7 @@ bool CResourceStore::SaveDatabaseCache()
|
||||||
{
|
{
|
||||||
TString Path = DatabasePath();
|
TString Path = DatabasePath();
|
||||||
|
|
||||||
CBinaryWriter Writer(Path, FOURCC('CACH'), 0, mGame);
|
CBasicBinaryWriter Writer(Path, FOURCC('CACH'), 0, mGame);
|
||||||
|
|
||||||
if (!Writer.IsValid())
|
if (!Writer.IsValid())
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue