summaryrefslogtreecommitdiff
path: root/project.cpp
diff options
context:
space:
mode:
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
{