mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 18:14:22 +00:00
Meh
This commit is contained in:
parent
73f8bc5c92
commit
541c044d52
@ -57,6 +57,7 @@ QStringList OneSixInstance::processMinecraftArgs(LoginResponse response)
|
|||||||
QString args_pattern = version->minecraftArguments;
|
QString args_pattern = version->minecraftArguments;
|
||||||
|
|
||||||
QMap<QString, QString> token_mapping;
|
QMap<QString, QString> token_mapping;
|
||||||
|
// yggdrasil!
|
||||||
token_mapping["auth_username"] = response.username;
|
token_mapping["auth_username"] = response.username;
|
||||||
token_mapping["auth_session"] = response.session_id;
|
token_mapping["auth_session"] = response.session_id;
|
||||||
token_mapping["auth_player_name"] = response.player_name;
|
token_mapping["auth_player_name"] = response.player_name;
|
||||||
@ -68,6 +69,7 @@ QStringList OneSixInstance::processMinecraftArgs(LoginResponse response)
|
|||||||
map["auth_player_name"] = "00000000-0000-0000-0000-000000000000";
|
map["auth_player_name"] = "00000000-0000-0000-0000-000000000000";
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// these do nothing and are stupid.
|
||||||
token_mapping["profile_name"] = name();
|
token_mapping["profile_name"] = name();
|
||||||
token_mapping["version_name"] = version->id;
|
token_mapping["version_name"] = version->id;
|
||||||
|
|
||||||
@ -144,8 +146,17 @@ MinecraftProcess *OneSixInstance::prepareForLaunch(LoginResponse response)
|
|||||||
args.append(processMinecraftArgs(response));
|
args.append(processMinecraftArgs(response));
|
||||||
|
|
||||||
// Set the width and height for 1.6 instances
|
// Set the width and height for 1.6 instances
|
||||||
args << QString("--width") << settings().get("MinecraftWinWidth").toString();
|
bool maximize = settings().get("LaunchMaximized").toBool();
|
||||||
args << QString("--height") << settings().get("MinecraftWinHeight").toString();
|
if(maximize)
|
||||||
|
{
|
||||||
|
// this is probably a BAD idea
|
||||||
|
// args << QString("--fullscreen");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
args << QString("--width") << settings().get("MinecraftWinWidth").toString();
|
||||||
|
args << QString("--height") << settings().get("MinecraftWinHeight").toString();
|
||||||
|
}
|
||||||
|
|
||||||
// create the process and set its parameters
|
// create the process and set its parameters
|
||||||
MinecraftProcess *proc = new MinecraftProcess(this);
|
MinecraftProcess *proc = new MinecraftProcess(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user