summaryrefslogtreecommitdiff
path: root/project.cpp
diff options
context:
space:
mode:
authorAlexander Khosrowshahi <alexk@vector35.com>2025-08-13 23:48:11 -0700
committerAlexander Khosrowshahi <alexk@vector35.com>2025-08-14 10:36:22 -0700
commit89fc86ce91635ded0843e19e43c3a04c5e432836 (patch)
tree88f1387070566cf10f32897dbb45f330b2c3d44a /project.cpp
parentf85e56d1772a8bbaad259f201b604613818c0591 (diff)
Expose GetFilePathInProject API for context menu
Diffstat (limited to 'project.cpp')
-rw-r--r--project.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/project.cpp b/project.cpp
index e795db61..e3e2b923 100644
--- a/project.cpp
+++ b/project.cpp
@@ -285,6 +285,15 @@ std::string Project::GetPath() const
return result;
}
+std::string Project::GetFilePathInProject(const Ref<ProjectFile>& file) const
+{
+ char* path = BNProjectGetFilePathInProject(m_object, file->m_object);
+ std::string result = path;
+ BNFreeString(path);
+ return result;
+}
+
+
std::string Project::GetName() const
{