From 0aed5e4eb3af56ba0bf9ceb0343c262a7427b6ba Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 13 Oct 2009 09:00:01 -0600 Subject: Add an asynchronous download class And use it to download news, updates, and the server list. --- src/main.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 0df822b9..c05ce193 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -926,7 +926,7 @@ int main(int argc, char *argv[]) loadUpdates(); } - printf("State change: %d to %d\n", oldstate, state); + //printf("State change: %d to %d\n", oldstate, state); oldstate = state; @@ -945,15 +945,16 @@ int main(int argc, char *argv[]) case STATE_CHOOSE_SERVER: logger->log("State: CHOOSE SERVER"); - // Don't allow an alpha opacity - // lower than the default value - SkinLoader::instance()->setMinimumOpacity(0.8f); - // Allow changing this using a server choice dialog // We show the dialog box only if the command-line // options weren't set. if (options.serverName.empty() && options.serverPort == 0) { - currentDialog = new ServerDialog(¤tServer); + // Don't allow an alpha opacity + // lower than the default value + SkinLoader::instance()->setMinimumOpacity(0.8f); + + currentDialog = new ServerDialog(¤tServer, + homeDir); } else { state = STATE_CONNECT_SERVER; -- cgit v1.2.3-70-g09d2