File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,10 @@ void initializePaths()
154154 /*
155155 OS X
156156 */
157- #elif defined(__APPLE__)
157+ #elif defined(__APPLE__) || defined(__FreeBSD__)
158158
159159 // TODO: Get path of executable. This assumes working directory is bin/
160- dstream<<" WARNING: Relative path not properly supported on OS X"
160+ dstream<<" WARNING: Relative path not properly supported on OS X and FreeBSD "
161161 <<std::endl;
162162 path_data = std::string (" ../data" );
163163 path_userdata = std::string (" ../" );
@@ -244,6 +244,11 @@ void initializePaths()
244244 CFRelease (resources_url);
245245
246246 path_userdata = std::string (getenv (" HOME" )) + " /Library/Application Support/" + APPNAME;
247+
248+ #elif defined(__FreeBSD__)
249+
250+ path_data = std::string (INSTALL_PREFIX) + " /share/" + APPNAME;
251+ path_userdata = std::string (getenv (" HOME" )) + " /." + APPNAME;
247252
248253 #endif
249254
You can’t perform that action at this time.
0 commit comments