diff options
| author | Mason Reed <mason@vector35.com> | 2025-04-14 02:52:47 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-14 03:20:51 -0400 |
| commit | ecdb87a7b737c3d432775b748f9cff686230f28d (patch) | |
| tree | 66ec4ccd8f96bc6efb435e262c6d7d1c38ea880b /view/sharedcache/core/Utility.cpp | |
| parent | 09a617a7a86207eaf09ccd5ebc72e734275baa66 (diff) | |
[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
Diffstat (limited to 'view/sharedcache/core/Utility.cpp')
| -rw-r--r-- | view/sharedcache/core/Utility.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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<ProjectFile> a, Ref<ProjectFile> b) +{ + if (!a && !b) + return true; + if (a && b) + return IsSameFolder(a->GetFolder(), b->GetFolder()); + return false; +} + bool IsSameFolder(Ref<ProjectFolder> a, Ref<ProjectFolder> b) { if (!a && !b) |
