From 8b15f7c80d57d3f249281ab6a320795ee7a04483 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Wed, 20 May 2026 13:27:43 -0400 Subject: Better handling for shared cache files in projects. Closes #6630. --- view/sharedcache/core/SharedCacheView.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'view/sharedcache/core/SharedCacheView.h') 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); -- cgit v1.3.1