diff options
author | swirl <swurl@swurl.xyz> | 2022-01-14 18:03:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 18:03:35 -0500 |
commit | b4f750e7db40352111417ea89a9f375ae8c746ab (patch) | |
tree | d69c63d525c824f0c39803460896aa6ca719d66e /launcher/LaunchController.cpp | |
parent | b19e3156154ba0dd232a3d165b1759c57e2858f2 (diff) | |
parent | cdaa397dcffb92ae6a9c659047a87d49286dee4f (diff) | |
download | PrismLauncher-b4f750e7db40352111417ea89a9f375ae8c746ab.tar.gz PrismLauncher-b4f750e7db40352111417ea89a9f375ae8c746ab.tar.bz2 PrismLauncher-b4f750e7db40352111417ea89a9f375ae8c746ab.zip |
Merge pull request #50 from bexnoss/offline-mode
Offline Mode Support
Diffstat (limited to 'launcher/LaunchController.cpp')
-rw-r--r-- | launcher/LaunchController.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/LaunchController.cpp b/launcher/LaunchController.cpp index 7750be1a..32fc99cb 100644 --- a/launcher/LaunchController.cpp +++ b/launcher/LaunchController.cpp @@ -116,6 +116,12 @@ void LaunchController::login() { m_session->wants_online = m_online; m_accountToUse->fillSession(m_session); + // Launch immediately in true offline mode + if(m_accountToUse->isOffline()) { + launchInstance(); + return; + } + switch(m_accountToUse->accountState()) { case AccountState::Offline: { m_session->wants_online = false; |