src/main/macosx/SDLMain.m
changeset 958 d390f9bd6b1c
parent 957 217f119a19a0
child 1113 39408f59a0f7
equal deleted inserted replaced
957:217f119a19a0 958:d390f9bd6b1c
   295 
   295 
   296 
   296 
   297 /* Main entry point to executable - should *not* be SDL_main! */
   297 /* Main entry point to executable - should *not* be SDL_main! */
   298 int main (int argc, char **argv)
   298 int main (int argc, char **argv)
   299 {
   299 {
   300 
       
   301     /* Copy the arguments into a global variable */
   300     /* Copy the arguments into a global variable */
   302     int i;
       
   303     
       
   304     /* This is passed if we are launched by double-clicking */
   301     /* This is passed if we are launched by double-clicking */
   305     if ( argc >= 2 && strncmp (argv[1], "-psn", 4) == 0 ) {
   302     if ( argc >= 2 && strncmp (argv[1], "-psn", 4) == 0 ) {
   306         gArgc = 1;
   303         gArgc = 1;
   307         gFinderLaunch = YES;
   304         gFinderLaunch = YES;
   308     } else {
   305     } else {