summaryrefslogtreecommitdiffstats
path: root/logic/LegacyInstance.cpp
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-11-20 18:31:15 -0600
committerAndrew <forkk@forkk.net>2013-11-20 18:31:15 -0600
commitabf8408911c057d8aafe90790f5d2f5de0e1d97c (patch)
treeb6b77a485702c0a7ac45b5b96d6b8b0f41c14af7 /logic/LegacyInstance.cpp
parent03652b01d2ec8a7c54fb39dd8ed660f0bbc2fa2a (diff)
downloadMultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.tar
MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.tar.gz
MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.tar.lz
MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.tar.xz
MultiMC-abf8408911c057d8aafe90790f5d2f5de0e1d97c.zip
Nuke and pave the old login system
Also, account list now saves profile lists.
Diffstat (limited to 'logic/LegacyInstance.cpp')
-rw-r--r--logic/LegacyInstance.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/LegacyInstance.cpp b/logic/LegacyInstance.cpp
index 9a91b839..3a337140 100644
--- a/logic/LegacyInstance.cpp
+++ b/logic/LegacyInstance.cpp
@@ -50,7 +50,7 @@ BaseUpdate *LegacyInstance::doUpdate()
return new LegacyUpdate(this, this);
}
-MinecraftProcess *LegacyInstance::prepareForLaunch(LoginResponse response)
+MinecraftProcess *LegacyInstance::prepareForLaunch(MojangAccountPtr account)
{
MinecraftProcess *proc = new MinecraftProcess(this);
@@ -103,8 +103,8 @@ MinecraftProcess *LegacyInstance::prepareForLaunch(LoginResponse response)
#endif
args << "-jar" << LAUNCHER_FILE;
- args << response.player_name;
- args << response.session_id;
+ args << account->currentProfile()->name();
+ args << account->accessToken();
args << windowTitle;
args << windowSize;
args << lwjgl;