mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-27 21:49:10 +02:00
* VCMI works again on Windows.
hint: ./executable.exe does not run executable on Windows - you must use executable.exe or .\executable.exe
This commit is contained in:
parent
e88bec607b
commit
fdcb286044
@ -371,7 +371,7 @@ void CClient::newGame( CConnection *con, StartInfo *si )
|
||||
|
||||
void CClient::runServer(const char * portc)
|
||||
{
|
||||
static std::string comm = std::string(BIN_DIR "/" SERVER_NAME " ") + portc + " > server_log.txt"; //needs to be static, if not - will be probably destroyed before new thread reads it
|
||||
static std::string comm = std::string(BIN_DIR PATH_SEPARATOR SERVER_NAME " ") + portc + " > server_log.txt"; //needs to be static, if not - will be probably destroyed before new thread reads it
|
||||
boost::thread servthr(boost::bind(system,comm.c_str())); //runs server executable; //TODO: will it work on non-windows platforms?
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user