Renamed chdir option, added OS X menu bar option.

Some command-line programs want to render to hidden windows without any
visible UI.  This option makes this possible on OS X.
This commit is contained in:
Camilla Berglund
2013-01-24 19:45:21 +01:00
parent 6abb8e4c86
commit 8c766b57e7
4 changed files with 18 additions and 7 deletions
+3 -3
View File
@@ -34,7 +34,7 @@
// Change to our application bundle's resources directory, if present
//========================================================================
#if defined(_GLFW_CD_RESOURCES)
#if defined(_GLFW_USE_CHDIR)
static void changeToResourcesDirectory(void)
{
@@ -70,7 +70,7 @@ static void changeToResourcesDirectory(void)
chdir(resourcesPath);
}
#endif /* _GLFW_CD_RESOURCES */
#endif /* _GLFW_USE_CHDIR */
//////////////////////////////////////////////////////////////////////////
@@ -94,7 +94,7 @@ int _glfwPlatformInit(void)
return GL_FALSE;
}
#if defined(_GLFW_CD_RESOURCES)
#if defined(_GLFW_USE_CHDIR)
changeToResourcesDirectory();
#endif