Merge branch 'feature_better_launch' into develop
This commit is contained in:
commit
85ff1657fd
@ -256,6 +256,11 @@ QString BaseInstance::name() const
|
|||||||
return d->m_settings->get("name").toString();
|
return d->m_settings->get("name").toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString BaseInstance::windowTitle() const
|
||||||
|
{
|
||||||
|
return "MultiMC: " + name();
|
||||||
|
}
|
||||||
|
|
||||||
QStringList BaseInstance::extraArguments() const
|
QStringList BaseInstance::extraArguments() const
|
||||||
{
|
{
|
||||||
return Util::Commandline::splitArgs(settings().get("JvmArgs").toString());
|
return Util::Commandline::splitArgs(settings().get("JvmArgs").toString());
|
||||||
|
@ -71,6 +71,9 @@ public:
|
|||||||
QString name() const;
|
QString name() const;
|
||||||
void setName(QString val);
|
void setName(QString val);
|
||||||
|
|
||||||
|
/// Value used for instance window titles
|
||||||
|
QString windowTitle() const;
|
||||||
|
|
||||||
QString iconKey() const;
|
QString iconKey() const;
|
||||||
void setIconKey(QString val);
|
void setIconKey(QString val);
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ MinecraftProcess *LegacyInstance::prepareForLaunch(MojangAccountPtr account)
|
|||||||
.absolutePath();
|
.absolutePath();
|
||||||
launchScript += "userName " + account->currentProfile()->name + "\n";
|
launchScript += "userName " + account->currentProfile()->name + "\n";
|
||||||
launchScript += "sessionId " + account->sessionId() + "\n";
|
launchScript += "sessionId " + account->sessionId() + "\n";
|
||||||
launchScript += "windowTitle MultiMC: " + name() + "\n";
|
launchScript += "windowTitle " + windowTitle() + "\n";
|
||||||
launchScript += "windowParams " + windowParams + "\n";
|
launchScript += "windowParams " + windowParams + "\n";
|
||||||
launchScript += "lwjgl " + lwjgl + "\n";
|
launchScript += "lwjgl " + lwjgl + "\n";
|
||||||
launchScript += "launch legacy\n";
|
launchScript += "launch legacy\n";
|
||||||
|
@ -203,7 +203,7 @@ void MinecraftProcess::launch()
|
|||||||
// OSX dock icon and name
|
// OSX dock icon and name
|
||||||
#ifdef OSX
|
#ifdef OSX
|
||||||
args << "-Xdock:icon=icon.png";
|
args << "-Xdock:icon=icon.png";
|
||||||
args << QString("-Xdock:name=\"%1\"").arg(windowTitle);
|
args << QString("-Xdock:name=\"%1\"").arg(m_instance->windowTitle());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// HACK: Stupid hack for Intel drivers. See: https://mojang.atlassian.net/browse/MCL-767
|
// HACK: Stupid hack for Intel drivers. See: https://mojang.atlassian.net/browse/MCL-767
|
||||||
|
@ -228,7 +228,7 @@ MinecraftProcess *OneSixInstance::prepareForLaunch(MojangAccountPtr account)
|
|||||||
"param --height\nparam " + settings().get("MinecraftWinHeight").toString() + "\n";
|
"param --height\nparam " + settings().get("MinecraftWinHeight").toString() + "\n";
|
||||||
}
|
}
|
||||||
QDir natives_dir(PathCombine(instanceRoot(), "natives/"));
|
QDir natives_dir(PathCombine(instanceRoot(), "natives/"));
|
||||||
launchScript += "windowTitle MultiMC: " + name() + "\n";
|
launchScript += "windowTitle " + windowTitle() + "\n";
|
||||||
launchScript += "natives " + natives_dir.absolutePath() + "\n";
|
launchScript += "natives " + natives_dir.absolutePath() + "\n";
|
||||||
launchScript += "launch onesix\n";
|
launchScript += "launch onesix\n";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user