Changeset View
Changeset View
Standalone View
Standalone View
source/main.cpp
Show All 27 Lines | |||||
// not for any PCH effort, but instead for the (common) definitions | // not for any PCH effort, but instead for the (common) definitions | ||||
// included there. | // included there. | ||||
#define MINIMAL_PCH 2 | #define MINIMAL_PCH 2 | ||||
#include "lib/precompiled.h" | #include "lib/precompiled.h" | ||||
#include <chrono> | #include <chrono> | ||||
#include "lib/config2.h" | |||||
#include "lib/debug.h" | #include "lib/debug.h" | ||||
#include "lib/status.h" | #include "lib/status.h" | ||||
#include "lib/secure_crt.h" | #include "lib/secure_crt.h" | ||||
#include "lib/frequency_filter.h" | #include "lib/frequency_filter.h" | ||||
#include "lib/input.h" | #include "lib/input.h" | ||||
#include "lib/ogl.h" | #include "lib/ogl.h" | ||||
#include "lib/timer.h" | #include "lib/timer.h" | ||||
#include "lib/external_libraries/libsdl.h" | #include "lib/external_libraries/libsdl.h" | ||||
Show All 21 Lines | |||||
#include "ps/GameSetup/Atlas.h" | #include "ps/GameSetup/Atlas.h" | ||||
#include "ps/GameSetup/Config.h" | #include "ps/GameSetup/Config.h" | ||||
#include "ps/GameSetup/CmdLineArgs.h" | #include "ps/GameSetup/CmdLineArgs.h" | ||||
#include "ps/GameSetup/Paths.h" | #include "ps/GameSetup/Paths.h" | ||||
#include "ps/XML/Xeromyces.h" | #include "ps/XML/Xeromyces.h" | ||||
#include "network/NetClient.h" | #include "network/NetClient.h" | ||||
#include "network/NetServer.h" | #include "network/NetServer.h" | ||||
#include "network/NetSession.h" | #include "network/NetSession.h" | ||||
#if CONFIG2_LOBBY | |||||
#include "lobby/IXmppClient.h" | #include "lobby/IXmppClient.h" | ||||
#endif | |||||
#include "graphics/Camera.h" | #include "graphics/Camera.h" | ||||
#include "graphics/GameView.h" | #include "graphics/GameView.h" | ||||
#include "graphics/TextureManager.h" | #include "graphics/TextureManager.h" | ||||
#include "gui/GUIManager.h" | #include "gui/GUIManager.h" | ||||
#include "renderer/Renderer.h" | #include "renderer/Renderer.h" | ||||
#include "scriptinterface/ScriptEngine.h" | #include "scriptinterface/ScriptEngine.h" | ||||
#include "simulation2/Simulation2.h" | #include "simulation2/Simulation2.h" | ||||
#include "simulation2/system/TurnManager.h" | #include "simulation2/system/TurnManager.h" | ||||
▲ Show 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | if (g_Game && g_Game->IsGameStarted() && need_update) | ||||
g_Game->GetView()->Update(float(realTimeSinceLastFrame)); | g_Game->GetView()->Update(float(realTimeSinceLastFrame)); | ||||
} | } | ||||
// Immediately flush any messages produced by simulation code | // Immediately flush any messages produced by simulation code | ||||
if (g_NetClient) | if (g_NetClient) | ||||
g_NetClient->Flush(); | g_NetClient->Flush(); | ||||
#if CONFIG2_LOBBY | |||||
// Keep us connected to any XMPP servers | // Keep us connected to any XMPP servers | ||||
if (g_XmppClient) | if (g_XmppClient) | ||||
g_XmppClient->recv(); | g_XmppClient->recv(); | ||||
#endif | |||||
g_UserReporter.Update(); | g_UserReporter.Update(); | ||||
g_Console->Update(realTimeSinceLastFrame); | g_Console->Update(realTimeSinceLastFrame); | ||||
ogl_WarnIfError(); | ogl_WarnIfError(); | ||||
if (g_SoundManager) | if (g_SoundManager) | ||||
g_SoundManager->IdleTask(); | g_SoundManager->IdleTask(); | ||||
▲ Show 20 Lines • Show All 278 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator