Subversion Repositories Games.Rick Dangerous

Rev

Rev 2 | Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 4
Line 76... Line 76...
76
      if (dladdr (main, &addr_info) == 0)
76
      if (dladdr (main, &addr_info) == 0)
77
         return (".");
77
         return (".");
78
      strcpy_s (app_path, 1024, addr_info.dli_fname);
78
      strcpy_s (app_path, 1024, addr_info.dli_fname);
79
      if (strrchr (app_path, '/') != NULL)
79
      if (strrchr (app_path, '/') != NULL)
80
         *strrchr (app_path, '/') = 0;
80
         *strrchr (app_path, '/') = 0;
-
 
81
      if (strrchr (app_path, '/') != NULL)
-
 
82
         *strrchr (app_path, '/') = 0;
-
 
83
      strcat_s (app_path, 1024, "/Resources");
81
   }
84
   }
82
   return (app_path);
85
   return (app_path);
83
}
86
}
84
#else // !__APPLE__
87
#else // !__APPLE__
85
#define MessageBox(handle,msg,title,btns) fprintf (stderr, msg)
88
#define MessageBox(handle,msg,title,btns) fprintf (stderr, msg)