diff options
author | bexnoss <82064510+bexnoss@users.noreply.github.com> | 2022-01-12 14:26:02 +0100 |
---|---|---|
committer | bexnoss <82064510+bexnoss@users.noreply.github.com> | 2022-01-12 14:26:02 +0100 |
commit | a1ff3b1ee34c302ba52d773816207d30badab1eb (patch) | |
tree | ac4fbbddfab2ffbd9b1949d5b51857a528c69035 /launcher/minecraft/auth/steps/OfflineStep.cpp | |
parent | d4b522b6cb5281df02da54cd9e0f6445770e7ec7 (diff) | |
download | PrismLauncher-a1ff3b1ee34c302ba52d773816207d30badab1eb.tar.gz PrismLauncher-a1ff3b1ee34c302ba52d773816207d30badab1eb.tar.bz2 PrismLauncher-a1ff3b1ee34c302ba52d773816207d30badab1eb.zip |
Add offline mode support
Diffstat (limited to 'launcher/minecraft/auth/steps/OfflineStep.cpp')
-rw-r--r-- | launcher/minecraft/auth/steps/OfflineStep.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/launcher/minecraft/auth/steps/OfflineStep.cpp b/launcher/minecraft/auth/steps/OfflineStep.cpp new file mode 100644 index 00000000..9f1fc266 --- /dev/null +++ b/launcher/minecraft/auth/steps/OfflineStep.cpp @@ -0,0 +1,18 @@ +#include "OfflineStep.h" + +#include "Application.h" + +OfflineStep::OfflineStep(AccountData* data) : AuthStep(data) {}; +OfflineStep::~OfflineStep() noexcept = default; + +QString OfflineStep::describe() { + return tr("Creating offline account."); +} + +void OfflineStep::rehydrate() { + // NOOP +} + +void OfflineStep::perform() { + emit finished(AccountTaskState::STATE_WORKING, tr("Created offline account.")); +} |