summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index f2217331..51cdde3f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -64,13 +64,18 @@ private slots:
void onLoginComplete(QString instId, LoginResponse response)
{
- // TODO: console
+ proc = instance->prepareForLaunch(response.username(), response.sessionID());
+ if(!proc)
+ {
+ //FIXME: report error
+ return;
+ }
console = new ConsoleWindow();
- proc = new MinecraftProcess(instance.data(), response.username(), response.sessionID());
- //if (instance->getShowConsole())
console->show();
+
connect(proc, SIGNAL(ended()), SLOT(onTerminated()));
connect(proc, SIGNAL(log(QString,MessageLevel::Enum)), console, SLOT(write(QString,MessageLevel::Enum)));
+
proc->launch();
}