Fixed: Return true when "open" succeeds under OS X

--HG--
branch : develop
This commit is contained in:
kervala 2016-02-13 13:57:43 +01:00
parent 7ed708eae8
commit c9740a9e61

View file

@ -777,8 +777,12 @@ 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) return true;
if (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);
}
#else #else
static bool firstLaunchProgram = true; static bool firstLaunchProgram = true;