Skip to content

Commit aec923c

Browse files
committed
Cjhanged program path logic on macOS
Necessary to get the engine to work in an App Bundle.
1 parent 7ebbd06 commit aec923c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

TheForceEngine/TFE_FileSystem/paths-posix.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ namespace TFE_Paths
183183
{
184184
char p[TFE_MAX_PATH];
185185
memset(p, 0, TFE_MAX_PATH);
186+
#ifdef __APPLE__
187+
FileUtil::getExecutionDirectory(p);
188+
#else
186189
FileUtil::getCurrentDirectory(p);
190+
#endif
187191
s_paths[PATH_PROGRAM] = p;
188192
s_paths[PATH_PROGRAM] += "/";
189193
return true;

0 commit comments

Comments
 (0)