From 89fc86ce91635ded0843e19e43c3a04c5e432836 Mon Sep 17 00:00:00 2001 From: Alexander Khosrowshahi Date: Wed, 13 Aug 2025 23:48:11 -0700 Subject: Expose GetFilePathInProject API for context menu --- project.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'project.cpp') 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& file) const +{ + char* path = BNProjectGetFilePathInProject(m_object, file->m_object); + std::string result = path; + BNFreeString(path); + return result; +} + + std::string Project::GetName() const { -- cgit v1.3.1