Set the window params inside the launcher part, depending on launcher type.

Also create/change the new internal version files.
This commit is contained in:
Petr Mrázek
2014-05-06 23:39:02 +02:00
parent 2590c6be15
commit 825d31bf1a
44 changed files with 203 additions and 3231 deletions

View File

@ -244,24 +244,6 @@ bool OneSixInstance::prepareForLaunch(AuthSessionPtr account, QString &launchScr
launchScript += "windowParams " + windowParams + "\n";
}
// window size, title and state, onesix
{
bool maximize = settings().get("LaunchMaximized").toBool();
if (maximize)
{
// FIXME: there is no good way to maximize the minecraft window in onesix.
// this is probably a BAD idea
// launchScript += "param --fullscreen\n";
}
else
{
launchScript +=
"param --width\nparam " + settings().get("MinecraftWinWidth").toString() + "\n";
launchScript +=
"param --height\nparam " + settings().get("MinecraftWinHeight").toString() + "\n";
}
}
// legacy auth
{
launchScript += "userName " + session->player_name + "\n";