From c7a5ee9e244d58ae334b5e031aae38cb1481937d Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 18 Oct 2016 10:32:45 +0200 Subject: [PATCH] Changed: Use exec command under OS X to relaunch client --- code/ryzom/client/src/login_patch.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/ryzom/client/src/login_patch.cpp b/code/ryzom/client/src/login_patch.cpp index 02aa2fbd1..0afbdf5f4 100644 --- a/code/ryzom/client/src/login_patch.cpp +++ b/code/ryzom/client/src/login_patch.cpp @@ -948,7 +948,12 @@ void CPatchManager::createBatchFile(CProductDescriptionForClient &descFile, bool contentSuffix += "cd \"$STARTUPPATH\"\n\n"; // launch new client +#ifdef NL_OS_MAC + // use exec command under OS X + contentSuffix += toString("exec \"$RYZOM_CLIENT\" %s $LOGIN $PASSWORD $SHARDID\n", additionalParams.c_str()); +#else contentSuffix += toString("\"$RYZOM_CLIENT\" %s $LOGIN $PASSWORD $SHARDID\n", additionalParams.c_str()); +#endif } #endif