refactor indendation, fix a bug in MinecraftProcess & fix a bug in
InstanceLauncher
This commit is contained in:
@ -85,7 +85,7 @@ protected:
|
||||
QStringList m_arguments;
|
||||
|
||||
void genArgs();
|
||||
void log(QString text);
|
||||
void log(QString text, ConsoleWindow::WriteMode mode = ConsoleWindow::MULTIMC);
|
||||
|
||||
protected slots:
|
||||
void finish(int, QProcess::ExitStatus status);
|
||||
|
@ -197,6 +197,8 @@ void MinecraftProcess::launch()
|
||||
start(m_instance->settings().get("JavaPath").toString(), m_arguments);
|
||||
if (!waitForStarted())
|
||||
{
|
||||
log("Could not launch minecraft!", ConsoleWindow::ERROR);
|
||||
return;
|
||||
//TODO: error handling
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user