From ecdb87a7b737c3d432775b748f9cff686230f28d Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 14 Apr 2025 02:52:47 -0400 Subject: [SharedCache] Allow project databases to be stored in a separate folder However the primary file will need to be selected each time you open, for that to be resolved we need to use project file UUID's or the cache entry UUID's themselves to traverse all project files --- view/sharedcache/core/Utility.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'view/sharedcache/core/Utility.cpp') diff --git a/view/sharedcache/core/Utility.cpp b/view/sharedcache/core/Utility.cpp index 0cffc03e..8f49c6bf 100644 --- a/view/sharedcache/core/Utility.cpp +++ b/view/sharedcache/core/Utility.cpp @@ -137,6 +137,15 @@ std::string BaseFileName(const std::string& path) return path; } +bool IsSameFolderForFile(Ref a, Ref b) +{ + if (!a && !b) + return true; + if (a && b) + return IsSameFolder(a->GetFolder(), b->GetFolder()); + return false; +} + bool IsSameFolder(Ref a, Ref b) { if (!a && !b) -- cgit v1.3.1