mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-29 22:24:26 +02:00
Applied clang formatting
Signed-off-by: Michael Tyson <michael@atastypixel.com>
This commit is contained in:
parent
5661444414
commit
ced2f9d1a0
@ -276,7 +276,8 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// error if --launch is missing with --server or --profile
|
// error if --launch is missing with --server or --profile
|
||||||
if ((!m_serverToJoin.isEmpty() || !m_worldToJoin.isEmpty() || !m_profileToUse.isEmpty() || m_offline) && m_instanceIdToLaunch.isEmpty()) {
|
if ((!m_serverToJoin.isEmpty() || !m_worldToJoin.isEmpty() || !m_profileToUse.isEmpty() || m_offline) &&
|
||||||
|
m_instanceIdToLaunch.isEmpty()) {
|
||||||
std::cerr << "--server, --profile and --offline can only be used in combination with --launch!" << std::endl;
|
std::cerr << "--server, --profile and --offline can only be used in combination with --launch!" << std::endl;
|
||||||
m_status = Application::Failed;
|
m_status = Application::Failed;
|
||||||
return;
|
return;
|
||||||
|
@ -212,7 +212,7 @@ class Application : public QApplication {
|
|||||||
bool demo = false,
|
bool demo = false,
|
||||||
MinecraftTarget::Ptr targetToJoin = nullptr,
|
MinecraftTarget::Ptr targetToJoin = nullptr,
|
||||||
MinecraftAccountPtr accountToUse = nullptr,
|
MinecraftAccountPtr accountToUse = nullptr,
|
||||||
const QString &offlineName = QString());
|
const QString& offlineName = QString());
|
||||||
bool kill(InstancePtr instance);
|
bool kill(InstancePtr instance);
|
||||||
void closeCurrentWindow();
|
void closeCurrentWindow();
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ class LaunchController : public Task {
|
|||||||
|
|
||||||
void setOnline(bool online) { m_online = online; }
|
void setOnline(bool online) { m_online = online; }
|
||||||
|
|
||||||
void setOfflineName(const QString &offlineName) { m_offlineName = offlineName; }
|
void setOfflineName(const QString& offlineName) { m_offlineName = offlineName; }
|
||||||
|
|
||||||
void setDemo(bool demo) { m_demo = demo; }
|
void setDemo(bool demo) { m_demo = demo; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user