From: <geo...@us...> - 2012-08-06 22:35:48
|
Revision: 5107 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=5107&view=rev Author: geoffthemedio Date: 2012-08-06 22:35:42 +0000 (Mon, 06 Aug 2012) Log Message: ----------- Hopefully fixed name of server binary on OSX. Modified Paths: -------------- branches/FreeOrion-GiGi-Fork/client/human/HumanClientApp.cpp Modified: branches/FreeOrion-GiGi-Fork/client/human/HumanClientApp.cpp =================================================================== --- branches/FreeOrion-GiGi-Fork/client/human/HumanClientApp.cpp 2012-08-06 22:35:05 UTC (rev 5106) +++ branches/FreeOrion-GiGi-Fork/client/human/HumanClientApp.cpp 2012-08-06 22:35:42 UTC (rev 5107) @@ -268,8 +268,18 @@ bool HumanClientApp::SinglePlayerGame() const { return m_single_player_game; } +namespace { + std::string ServerClientExe() { +#ifdef FREEORION_WIN32 + return PathString(GetBinDir() / "freeoriond.exe"); +#else + return (GetBinDir() / "freeoriond").string(); +#endif + } +} + void HumanClientApp::StartServer() { - std::string SERVER_CLIENT_EXE = PathString(GetBinDir() / "freeoriond.exe"); + std::string SERVER_CLIENT_EXE = ServerClientExe(); std::vector<std::string> args; args.push_back("\"" + SERVER_CLIENT_EXE + "\""); args.push_back("--resource-dir"); |