mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
Initial round of CMake refactoring
This commit is contained in:
@@ -23,7 +23,8 @@ CResourceStore::CResourceStore(const TString& rkDatabasePath)
|
||||
{
|
||||
mpDatabaseRoot = new CVirtualDirectory(this);
|
||||
mDatabasePath = FileUtil::MakeAbsolute(rkDatabasePath.GetFileDirectory());
|
||||
LoadDatabaseCache();
|
||||
if ((mDatabasePathExists = FileUtil::IsDirectory(mDatabasePath)))
|
||||
LoadDatabaseCache();
|
||||
}
|
||||
|
||||
// Main constructor for game projects and game exporter
|
||||
|
||||
@@ -36,6 +36,7 @@ class CResourceStore
|
||||
|
||||
// Directory paths
|
||||
TString mDatabasePath;
|
||||
bool mDatabasePathExists;
|
||||
|
||||
public:
|
||||
CResourceStore(const TString& rkDatabasePath);
|
||||
@@ -80,6 +81,7 @@ public:
|
||||
inline CGameProject* Project() const { return mpProj; }
|
||||
inline EGame Game() const { return mGame; }
|
||||
inline TString DatabaseRootPath() const { return mDatabasePath; }
|
||||
inline bool DatabasePathExists() const { return mDatabasePathExists; }
|
||||
inline TString ResourcesDir() const { return IsEditorStore() ? DatabaseRootPath() : DatabaseRootPath() + "Resources/"; }
|
||||
inline TString DatabasePath() const { return DatabaseRootPath() + "ResourceDatabaseCache.bin"; }
|
||||
inline CVirtualDirectory* RootDirectory() const { return mpDatabaseRoot; }
|
||||
|
||||
Reference in New Issue
Block a user