Browse Source

Load patch when Rack is launched by file association on Mac.

tags/v2.1.2
Andrew Belt 2 years ago
parent
commit
8584109933
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      adapters/standalone.cpp
  2. +1
    -1
      dep/glfw

+ 4
- 4
adapters/standalone.cpp View File

@@ -208,10 +208,10 @@ int main(int argc, char* argv[]) {
#if defined ARCH_MAC
// For some reason, launching from the command line sets glfwGetOpenedFilenames(), so make sure we're running the app bundle.
if (asset::bundlePath != "") {
// const char* const* openedFilenames = glfwGetOpenedFilenames();
// if (openedFilenames && openedFilenames[0]) {
// patchPath = openedFilenames[0];
// }
const char* const* openedFilenames = glfwGetOpenedFilenames();
if (openedFilenames && openedFilenames[0]) {
patchPath = openedFilenames[0];
}
}
#endif



+ 1
- 1
dep/glfw

@@ -1 +1 @@
Subproject commit 10a72dcb9097c4668fd77d6e2d5e5695c8d55f1a
Subproject commit d46b57cdb16e521c8cf4290c9022278863a84022

Loading…
Cancel
Save