NOISSUE Flatten gui and logic libraries into MultiMC
This commit is contained in:
24
launcher/minecraft/launch/ClaimAccount.cpp
Normal file
24
launcher/minecraft/launch/ClaimAccount.cpp
Normal file
@ -0,0 +1,24 @@
|
||||
#include "ClaimAccount.h"
|
||||
#include <launch/LaunchTask.h>
|
||||
|
||||
ClaimAccount::ClaimAccount(LaunchTask* parent, AuthSessionPtr session): LaunchStep(parent)
|
||||
{
|
||||
if(session->status == AuthSession::Status::PlayableOnline)
|
||||
{
|
||||
m_account = session->m_accountPtr;
|
||||
}
|
||||
}
|
||||
|
||||
void ClaimAccount::executeTask()
|
||||
{
|
||||
if(m_account)
|
||||
{
|
||||
lock.reset(new UseLock(m_account));
|
||||
emitSucceeded();
|
||||
}
|
||||
}
|
||||
|
||||
void ClaimAccount::finalize()
|
||||
{
|
||||
lock.reset();
|
||||
}
|
Reference in New Issue
Block a user