You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
get_executable_path slight change to make it work under OpenBSD
(cherry picked from commit df87ad14d0)
This commit is contained in:
committed by
Rémi Verschelde
parent
577c8714c7
commit
14392c9798
@@ -49,7 +49,7 @@
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
#include "globals.h"
|
||||
@@ -499,7 +499,7 @@ String OS_Unix::get_executable_path() const {
|
||||
return OS::get_executable_path();
|
||||
}
|
||||
return b;
|
||||
#elif defined(__FreeBSD__)
|
||||
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
|
||||
char resolved_path[MAXPATHLEN];
|
||||
|
||||
realpath(OS::get_executable_path().utf8().get_data(), resolved_path);
|
||||
|
||||
Reference in New Issue
Block a user