mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Merge remote-tracking branch 'upstream/develop' into mp-disconnection
# Conflicts: # server/CVCMIServer.cpp
This commit is contained in:
@@ -104,7 +104,9 @@ static po::variables_map vm;
|
||||
|
||||
//static bool setResolution = false; //set by event handling thread after resolution is adjusted
|
||||
|
||||
#ifndef VCMI_IOS
|
||||
void processCommand(const std::string &message);
|
||||
#endif
|
||||
static void setScreenRes(int w, int h, int bpp, bool fullscreen, int displayIndex, bool resetVideo=true);
|
||||
void playIntro();
|
||||
static void mainLoop();
|
||||
@@ -236,9 +238,11 @@ int main(int argc, char * argv[])
|
||||
// Init old logging system and new (temporary) logging system
|
||||
CStopWatch total, pomtime;
|
||||
std::cout.flags(std::ios::unitbuf);
|
||||
#ifndef VCMI_IOS
|
||||
console = new CConsoleHandler();
|
||||
*console->cb = processCommand;
|
||||
console->start();
|
||||
#endif
|
||||
|
||||
const bfs::path logPath = VCMIDirs::get().userLogsPath() / "VCMI_Client_log.txt";
|
||||
logConfig = new CBasicLogConfigurator(logPath, console);
|
||||
@@ -560,6 +564,7 @@ void removeGUI()
|
||||
LOCPLINT = nullptr;
|
||||
}
|
||||
|
||||
#ifndef VCMI_IOS
|
||||
void processCommand(const std::string &message)
|
||||
{
|
||||
std::istringstream readed;
|
||||
@@ -972,6 +977,7 @@ void processCommand(const std::string &message)
|
||||
LOCPLINT->cb->sendMessage(message);
|
||||
}*/
|
||||
}
|
||||
#endif
|
||||
|
||||
//plays intro, ends when intro is over or button has been pressed (handles events)
|
||||
void playIntro()
|
||||
@@ -982,6 +988,7 @@ void playIntro()
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef VCMI_IOS
|
||||
static bool checkVideoMode(int monitorIndex, int w, int h)
|
||||
{
|
||||
//we only check that our desired window size fits on screen
|
||||
@@ -1003,6 +1010,7 @@ static bool checkVideoMode(int monitorIndex, int w, int h)
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void cleanupRenderer()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user