summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-10-10 03:05:21 +0200
committerPetr Mrázek <peterix@gmail.com>2013-10-10 03:05:21 +0200
commit541c044d529a7797b8b4e3eea26b1b59d485eb22 (patch)
tree23fa2cb872a640457da956517c43123218f3cdc3 /logic
parent73f8bc5c92cb4a9b7ce507309001c6b206b5c8eb (diff)
downloadMultiMC-541c044d529a7797b8b4e3eea26b1b59d485eb22.tar
MultiMC-541c044d529a7797b8b4e3eea26b1b59d485eb22.tar.gz
MultiMC-541c044d529a7797b8b4e3eea26b1b59d485eb22.tar.lz
MultiMC-541c044d529a7797b8b4e3eea26b1b59d485eb22.tar.xz
MultiMC-541c044d529a7797b8b4e3eea26b1b59d485eb22.zip
Meh
Diffstat (limited to 'logic')
-rw-r--r--logic/OneSixInstance.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/logic/OneSixInstance.cpp b/logic/OneSixInstance.cpp
index 1b7b5bb4..853bcc48 100644
--- a/logic/OneSixInstance.cpp
+++ b/logic/OneSixInstance.cpp
@@ -57,6 +57,7 @@ QStringList OneSixInstance::processMinecraftArgs(LoginResponse response)
QString args_pattern = version->minecraftArguments;
QMap<QString, QString> token_mapping;
+ // yggdrasil!
token_mapping["auth_username"] = response.username;
token_mapping["auth_session"] = response.session_id;
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";
*/
+ // these do nothing and are stupid.
token_mapping["profile_name"] = name();
token_mapping["version_name"] = version->id;
@@ -144,8 +146,17 @@ MinecraftProcess *OneSixInstance::prepareForLaunch(LoginResponse response)
args.append(processMinecraftArgs(response));
// Set the width and height for 1.6 instances
- args << QString("--width") << settings().get("MinecraftWinWidth").toString();
- args << QString("--height") << settings().get("MinecraftWinHeight").toString();
+ bool maximize = settings().get("LaunchMaximized").toBool();
+ 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
MinecraftProcess *proc = new MinecraftProcess(this);