We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4ffedc commit e1df989Copy full SHA for e1df989
1 file changed
libs/common/src/getExecutablePath.cpp
@@ -121,6 +121,22 @@ std::string getExecutablePath()
121
return ec ? "" : p.make_preferred().string();
122
}
123
124
+#elif(BOOST_OS_HAIKU)
125
+std::string getExecutablePath()
126
+{
127
+ std::string ret;
128
+ int32 cookie = 0;
129
+ image_info info;
130
+ while (get_next_image_info(B_CURRENT_TEAM, &cookie, &info) == B_OK)
131
+ {
132
+ if (info.type == B_APP_IMAGE)
133
134
+ ret = info.name;
135
+ }
136
137
+ return ret;
138
+}
139
+
140
#else
141
142
# error Unsupported plattform!
0 commit comments