|
|
@@ -163,11 +163,11 @@ int main(int argc, char* argv[]) { |
|
|
|
|
|
|
|
// On Mac, use a hacked-in GLFW addition to get the launched path. |
|
|
|
#if defined ARCH_MAC |
|
|
|
// For some reason, launching from the command line sets glfwGetOpenedFilename(), so make sure we're running the app bundle. |
|
|
|
// For some reason, launching from the command line sets glfwGetOpenedFilenames(), so make sure we're running the app bundle. |
|
|
|
if (asset::bundlePath != "") { |
|
|
|
const char* openedFilename = glfwGetOpenedFilename(); |
|
|
|
if (openedFilename) { |
|
|
|
patchPath = openedFilename; |
|
|
|
const char* const* openedFilenames = glfwGetOpenedFilenames(); |
|
|
|
if (openedFilenames && openedFilenames[0]) { |
|
|
|
patchPath = openedFilenames[0]; |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|