Commit b387eb51 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@4891 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 371c7cf6
......@@ -263,6 +263,21 @@ bool parseCommandLineOptions(CSimpleOpt& args){
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] = "";
}
}
}
OpenFlipper::Options::argc(&argc);
OpenFlipper::Options::argv(&argv);
......
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