Forráskód Böngészése

ignore weird command-line settings

David Rose 16 éve
szülő
commit
fe38ff0da5
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      direct/src/plugin_standalone/panda3dMac.cxx

+ 4 - 1
direct/src/plugin_standalone/panda3dMac.cxx

@@ -109,5 +109,8 @@ main(int argc, char *argv[]) {
   err = AEInstallEventHandler
     (kCoreEventClass, kAEOpenDocuments, handler, 0, false);
 
-  return this_prog->run_command_line(argc, argv);
+  // The command-line options are weird when we start from the
+  // Launcher.  Just ignore them.
+  this_prog->run_main_loop();
+  return 0;
 }