diff options
author | bexnoss <82064510+bexnoss@users.noreply.github.com> | 2022-01-17 12:08:10 +0100 |
---|---|---|
committer | Naomi Calabretta <me@arytonex.pw> | 2022-01-30 02:35:56 +0100 |
commit | 9d23ac562f3e9ea5a20662551cd98ae0f0a1fa73 (patch) | |
tree | 797336ddeaeefec75932b8d5ecdb8566180abb8f /launcher/minecraft/auth/flows | |
parent | 5abb97362fc13fd631f00b3bb8521347f8a373c4 (diff) | |
download | PrismLauncher-9d23ac562f3e9ea5a20662551cd98ae0f0a1fa73.tar.gz PrismLauncher-9d23ac562f3e9ea5a20662551cd98ae0f0a1fa73.tar.bz2 PrismLauncher-9d23ac562f3e9ea5a20662551cd98ae0f0a1fa73.zip |
Add offline mode support
Diffstat (limited to 'launcher/minecraft/auth/flows')
-rw-r--r-- | launcher/minecraft/auth/flows/Offline.cpp | 17 | ||||
-rw-r--r-- | launcher/minecraft/auth/flows/Offline.h | 22 |
2 files changed, 39 insertions, 0 deletions
diff --git a/launcher/minecraft/auth/flows/Offline.cpp b/launcher/minecraft/auth/flows/Offline.cpp new file mode 100644 index 00000000..fc614a8c --- /dev/null +++ b/launcher/minecraft/auth/flows/Offline.cpp @@ -0,0 +1,17 @@ +#include "Offline.h" + +#include "minecraft/auth/steps/OfflineStep.h" + +OfflineRefresh::OfflineRefresh( + AccountData *data, + QObject *parent +) : AuthFlow(data, parent) { + m_steps.append(new OfflineStep(m_data)); +} + +OfflineLogin::OfflineLogin( + AccountData *data, + QObject *parent +) : AuthFlow(data, parent) { + m_steps.append(new OfflineStep(m_data)); +} diff --git a/launcher/minecraft/auth/flows/Offline.h b/launcher/minecraft/auth/flows/Offline.h new file mode 100644 index 00000000..5d1f83a4 --- /dev/null +++ b/launcher/minecraft/auth/flows/Offline.h @@ -0,0 +1,22 @@ +#pragma once +#include "AuthFlow.h" + +class OfflineRefresh : public AuthFlow +{ + Q_OBJECT +public: + explicit OfflineRefresh( + AccountData *data, + QObject *parent = 0 + ); +}; + +class OfflineLogin : public AuthFlow +{ + Q_OBJECT +public: + explicit OfflineLogin( + AccountData *data, + QObject *parent = 0 + ); +}; |