summaryrefslogtreecommitdiff
path: root/project.cpp
diff options
context:
space:
mode:
authorAlexander Khosrowshahi <alexk@vector35.com>2025-06-30 14:56:41 -0400
committerAlexander Khosrowshahi <alexk@vector35.com>2025-07-03 13:47:57 -0400
commit2be7b54b7bc7a0e46408b228ee55bbb4fe342e6c (patch)
tree8c55b55ccaef570f6388411d7f990dbcc6a710ab /project.cpp
parent2cd19b867772f15d87eaee9560b94a9fd9ba13e4 (diff)
Add GetPathInProject() to core API
Diffstat (limited to 'project.cpp')
-rw-r--r--project.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/project.cpp b/project.cpp
index da4ee88d..6cb76a02 100644
--- a/project.cpp
+++ b/project.cpp
@@ -552,6 +552,14 @@ std::string ProjectFile::GetPathOnDisk() const
return result;
}
+std::string ProjectFile::GetPathInProject() const
+{
+ char* path = BNProjectFileGetPathInProject(m_object);
+ std::string result = path;
+ BNFreeString(path);
+ return result;
+}
+
bool ProjectFile::ExistsOnDisk() const
{