Added Launch Demo button.
Signed-off-by: jopejoe1 <johannes@joens.email>
This commit is contained in:
parent
1ca2be0039
commit
29dcb9d274
9 changed files with 90 additions and 9 deletions
|
@ -1041,7 +1041,7 @@ void Application::performMainStartupAction()
|
|||
qDebug() << " Launching with account" << m_profileToUse;
|
||||
}
|
||||
|
||||
launch(inst, true, nullptr, serverToJoin, accountToUse);
|
||||
launch(inst, true, false, nullptr, serverToJoin, accountToUse);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1145,6 +1145,7 @@ void Application::messageReceived(const QByteArray& message)
|
|||
launch(
|
||||
instance,
|
||||
true,
|
||||
false,
|
||||
nullptr,
|
||||
serverObject,
|
||||
accountObject
|
||||
|
@ -1245,6 +1246,7 @@ bool Application::openJsonEditor(const QString &filename)
|
|||
bool Application::launch(
|
||||
InstancePtr instance,
|
||||
bool online,
|
||||
bool demo,
|
||||
BaseProfilerFactory *profiler,
|
||||
MinecraftServerTargetPtr serverToJoin,
|
||||
MinecraftAccountPtr accountToUse
|
||||
|
@ -1268,6 +1270,7 @@ bool Application::launch(
|
|||
controller.reset(new LaunchController());
|
||||
controller->setInstance(instance);
|
||||
controller->setOnline(online);
|
||||
controller->setDemo(demo);
|
||||
controller->setProfiler(profiler);
|
||||
controller->setServerToJoin(serverToJoin);
|
||||
controller->setAccountToUse(accountToUse);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue