Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/application.cc')
-rw-r--r--src/core/application.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/application.cc b/src/core/application.cc
index 1cba59a..be86dd6 100644
--- a/src/core/application.cc
+++ b/src/core/application.cc
@@ -270,20 +270,19 @@ void Application::connect(std::string const &host)
}
if (host.size()) {
+ notify_connect();
application_game = new GameConnection(host);
if (!application_game->running()) {
delete application_game;
application_game = 0;
- } else {
- notify_connect();
}
} else {
+ notify_connect();
application_game = new GameServer();
if (application_game->running()) {
- con_print << "^BConnected to local game.\n";
- notify_connect();
+ con_print << "^BConnected to local game.\n";
} else {
delete application_game;
application_game = 0;
@@ -444,6 +443,12 @@ void Application::notify_message(const core::Message::Channel channel, const std
con_print << message << std::endl;
}
+void Application::notify_loader(const std::string &message)
+{
+ // the default implementation does nothing.
+ // used by the client to udpate the loader screen
+}
+
void Application::notify_sound(const char *name)
{
// the default implementation does nothing.