Lots of changes to how resource database/entry data is serialized; resource database file is now binary and merged with the cache data file. Binary reader/writer now use 32-bit sizes.

This commit is contained in:
Aruki
2017-07-04 19:02:56 -06:00
parent 4652e125e5
commit 3fa1279d29
17 changed files with 329 additions and 831 deletions

View File

@@ -9,7 +9,7 @@ CGameProject::~CGameProject()
{
if (mpResourceStore)
{
ASSERT(!mpResourceStore->IsDirty());
ASSERT(!mpResourceStore->IsCacheDirty());
if (gpResourceStore == mpResourceStore)
gpResourceStore = nullptr;
@@ -238,7 +238,7 @@ CGameProject* CGameProject::LoadProject(const TString& rkProjPath, IProgressNoti
// Load resource database
pProgress->Report("Loading resource database");
pProj->mpResourceStore = new CResourceStore(pProj);
LoadSuccess = pProj->mpResourceStore->LoadResourceDatabase();
LoadSuccess = pProj->mpResourceStore->LoadDatabaseCache();
// Validate resource database
if (LoadSuccess)