Commit 67ef62c3 authored by Mike Kremer's avatar Mike Kremer

Removal of -psn argument (which is automatically attached under MacOSX)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4892 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b387eb51
......@@ -266,14 +266,13 @@ int main(int argc, char **argv)
// Remove -psn_0_xxxxx argument which is automatically
// attached by MacOSX
for (int i = 0; i < m_argc; i++) {
if(strlen(m_argv[i]) > 4) {
if( ( (m_argv[i])[0] == (SOCHAR)'-' ) &&
( (m_argv[i])[1] == (SOCHAR)'p' ) &&
( (m_argv[i])[2] == (SOCHAR)'s' ) &&
( (m_argv[i])[3] == (SOCHAR)'n' ) ) {
m_argc--;
m_nLastArg--;
m_argv[i] = "";
if(strlen(argv[i]) > 4) {
if( ( (argv[i])[0] == '-' ) &&
( (argv[i])[1] == 'p' ) &&
( (argv[i])[2] == 's' ) &&
( (argv[i])[3] == 'n' ) ) {
argc--;
argv[i] = "";
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment