summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCacheView.h
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/SharedCacheView.h')
-rw-r--r--view/sharedcache/core/SharedCacheView.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/sharedcache/core/SharedCacheView.h b/view/sharedcache/core/SharedCacheView.h
index 25f9591f..e55df367 100644
--- a/view/sharedcache/core/SharedCacheView.h
+++ b/view/sharedcache/core/SharedCacheView.h
@@ -14,6 +14,8 @@ class SharedCacheView : public BinaryNinja::BinaryView
// Restored primary file name from metadata, or the file name on first open.
std::string m_primaryFileName;
+ // Project-relative path when the database is in a project, otherwise relative to the database directory.
+ std::string m_primaryFilePath;
// Restored associated file names from metadata, this is all the associated cache entries.
// NOTE: Currently this is just used to alert the user to supposed missing files.
@@ -31,6 +33,7 @@ public:
bool InitController();
void SetPrimaryFileName(std::string primaryFileName);
+ void SetPrimaryFileLocation(std::string primaryFilePath, std::string primaryFileName);
// Logs the secondary file name to `m_secondaryFileNames`, see the note on the field about usage.
void LogSecondaryFileName(std::string associatedFileName);