25 #ifndef INCLUDED_LocateServer_h_GUID_7D10F12E_2A83_48BB_7581_ED7A7F5188AC 26 #define INCLUDED_LocateServer_h_GUID_7D10F12E_2A83_48BB_7581_ED7A7F5188AC 31 #include <osvr/Util/PlatformConfig.h> 45 if (!server || server->empty()) {
48 const char lastChar = server->back();
49 if (lastChar ==
'/' || lastChar ==
'\\') {
59 #if defined(OSVR_WINDOWS) 60 static const std::string pathExtension =
".exe";
61 static const std::string pathSep =
"\\";
63 static const std::string pathExtension =
"";
64 static const std::string pathSep =
"/";
66 return *binPath + pathSep +
"osvr_server" + pathExtension;
78 #endif // INCLUDED_LocateServer_h_GUID_7D10F12E_2A83_48BB_7581_ED7A7F5188AC The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
boost::optional< std::string > getServerBinaryPath()
INTERNAL ONLY - get the path to the server executable, if available.
Definition: LocateServer.h:56
boost::optional< std::string > getServerBinaryDirectoryPath()
INTERNAL ONLY - get the current server directory, if available.
Definition: LocateServer.h:43
boost::optional< std::string > getServerLauncherBinaryPath()
INTERNAL ONLY - get the path to the server launcher executable, if available.
Definition: LocateServer.h:72
OSVR_UTIL_EXPORT boost::optional< std::string > getEnvironmentVariable(std::string const &var)
Gets an environment variable's value.
Definition: GetEnvironmentVariable.cpp:52