]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/unix/main.cpp
Move OS X main function to an overlay
[libs/core.git] / source / core / unix / main.cpp
index 698ec69ad514ee4d62d20b14ed9a9ec31ae6ff53..434dba1b30c1f25d017897bf6925480aeaf166e0 100644 (file)
@@ -2,23 +2,5 @@
 
 int main(int argc, char **argv)
 {
-       void *data = 0;
-
-#ifdef __APPLE__
-       /* Applications launched from Finder get a special argument, which would
-       interfere with GetOpt.  Remove it from argv but pass it as data so it can
-       be used to determine how the application was launhed. */
-       int j = 0;
-       for(int i=0; i<argc; ++i)
-       {
-               if(!strncmp(argv[i], "-psn_", 5))
-                       data = argv[i];
-               else
-                       argv[j++] = argv[i];
-       }
-       argc = j;
-       argv[j] = 0;
-#endif
-
-       return Msp::Application::run(argc, argv, data);
+       return Msp::Application::run(argc, argv, 0);
 }