mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-03 08:51:22 +00:00
Fix for making starting directory exe's path in OSX
This commit is contained in:
parent
784ca1f2de
commit
eab00d12e9
|
@ -22,7 +22,7 @@
|
|||
#include <objc/objc.h>
|
||||
#include <objc/objc-runtime.h>
|
||||
|
||||
|
||||
#include <mach-o/dyld.h> //required for _NSGetExecutablePath
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -29335,7 +29335,7 @@ qbs_set(startDir,func__cwd());
|
|||
{
|
||||
char pathbuf[65536];
|
||||
uint32_t pathbufsize = sizeof(pathbuf);
|
||||
_NSGetExecutablePath(pathbuf, &pathbufsize)
|
||||
_NSGetExecutablePath(pathbuf, &pathbufsize);
|
||||
chdir(dirname(pathbuf));
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue