Fix for Mac Launch Program not returning true on success
This commit is contained in:
parent
2ef58c9e0e
commit
af1363f34e
1 changed files with 3 additions and 1 deletions
|
@ -780,7 +780,9 @@ bool launchProgram(const std::string &programName, const std::string &arguments,
|
||||||
int res = system(command.c_str());
|
int res = system(command.c_str());
|
||||||
|
|
||||||
if (res && log)
|
if (res && log)
|
||||||
nlwarning ("LAUNCH: Failed launched '%s' with arg '%s' return code %d", programName.c_str(), arguments.c_str(), res);
|
nlwarning ("LAUNCH: Failed launched '%s' with arg '%s' return code %d", programName.c_str(), arguments.c_str(), res);
|
||||||
|
if (!res)
|
||||||
|
return true;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
static bool firstLaunchProgram = true;
|
static bool firstLaunchProgram = true;
|
||||||
|
|
Loading…
Reference in a new issue