diff --git a/CMakeLists.txt b/CMakeLists.txt index b130e9b..8e63a5a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,8 @@ set(SRC include/headline.h src/headline.cpp include/indexparser.h - src/indexparser.cpp) + src/indexparser.cpp + include/config.h) include(FetchContent) diff --git a/include/config.h b/include/config.h new file mode 100644 index 0000000..ea20567 --- /dev/null +++ b/include/config.h @@ -0,0 +1,3 @@ +#pragma once + +constexpr const char* version = "v0.3.1-beta"; \ No newline at end of file diff --git a/src/launcherwindow.cpp b/src/launcherwindow.cpp index c88e7a9..9f161ad 100644 --- a/src/launcherwindow.cpp +++ b/src/launcherwindow.cpp @@ -15,6 +15,7 @@ #include "sapphirelauncher.h" #include "assetupdater.h" #include "headline.h" +#include "config.h" LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindow(parent), core(core) { setWindowTitle("Astra"); @@ -81,7 +82,11 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo QAction* showAbout = helpMenu->addAction("About Astra"); showAbout->setIcon(QIcon::fromTheme("help-about")); connect(showAbout, &QAction::triggered, [=] { - QMessageBox::about(this, "About Astra", "The source code is available here."); + QString aboutText; + aboutText.append(QString("Version: %1\n").arg(version)); + aboutText.append("The source code is available at https://sr.ht/~redstrate/astra."); + + QMessageBox::about(this, "About Astra", aboutText); }); QAction* showAboutQt = helpMenu->addAction("About Qt"); @@ -173,7 +178,7 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo #endif if(currentProfile().isSapphire) { - this->core.sapphireLauncher->login(currentProfile().lobbyURL, info); + //this->core.sapphireLauncher->login(currentProfile().lobbyURL, info); } else { this->core.squareBoot->bootCheck(info); }