summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-13 09:00:01 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-13 09:00:01 -0600
commit0aed5e4eb3af56ba0bf9ceb0343c262a7427b6ba (patch)
treee63bc37eb35cd10bc012d4d54fe7d76a81a5edc1 /src/main.cpp
parent5987d6ff5e737d72193089418a3bf31f9f5a5c8f (diff)
downloadmana-client-0aed5e4eb3af56ba0bf9ceb0343c262a7427b6ba.tar.gz
mana-client-0aed5e4eb3af56ba0bf9ceb0343c262a7427b6ba.tar.bz2
mana-client-0aed5e4eb3af56ba0bf9ceb0343c262a7427b6ba.tar.xz
mana-client-0aed5e4eb3af56ba0bf9ceb0343c262a7427b6ba.zip
Add an asynchronous download class
And use it to download news, updates, and the server list.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp13
1 files changed, 7 insertions, 6 deletions
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(&currentServer);
+ // Don't allow an alpha opacity
+ // lower than the default value
+ SkinLoader::instance()->setMinimumOpacity(0.8f);
+
+ currentDialog = new ServerDialog(&currentServer,
+ homeDir);
} else {
state = STATE_CONNECT_SERVER;