From b21dfd36cdafd76b5538383279d28b003188fa19 Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Wed, 25 Mar 2026 06:05:21 +0000 Subject: Provide more information in About page - Downstream version and the upstream revision it's based on (commit and date) - URL to our modified source code. - miniaudio and libsodium versions. - Build profile (release, dev, or debug). Also, stop checking for updates. --- src/lobby.cpp | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'src/lobby.cpp') diff --git a/src/lobby.cpp b/src/lobby.cpp index 6c0e551..002c70b 100644 --- a/src/lobby.cpp +++ b/src/lobby.cpp @@ -6,12 +6,14 @@ #include "networkmanager.h" #include "widgets/direct_connect_dialog.h" #include "widgets/server_editor_dialog.h" +#include "miniaudio.h" #include #include #include #include #include +#include Lobby::Lobby(AOApplication *p_ao_app, NetworkManager *p_net_manager) : QMainWindow{} @@ -118,7 +120,7 @@ void Lobby::loadUI() l_loader.load(&l_uiFile, this); FROM_UI(QLabel, game_version_lbl); - ui_game_version_lbl->setText(tr("Version: %1").arg(ao_app->get_version_string())); + ui_game_version_lbl->setText(tr("Version: %1").arg(ao_app->get_sof_version_string())); FROM_UI(QPushButton, settings_button); connect(ui_settings_button, &QPushButton::clicked, this, &Lobby::onSettingsRequested); @@ -207,7 +209,6 @@ void Lobby::reloadUi() list_favorites(); list_demos(); get_motd(); - check_for_updates(); reset_selection(); } @@ -273,11 +274,14 @@ void Lobby::on_about_clicked() const bool hasAvif = QImageReader::supportedImageFormats().contains("avif"); const bool hasWebp = QImageReader::supportedImageFormats().contains("webp"); const bool hasApng = QImageReader::supportedImageFormats().contains("apng"); - QString msg = tr("

Attorney Online %1

" + QString msg = tr("

Attorney Online %1 (based on AO revision %2)

" "The courtroom drama simulator." - "

Source code: " + "

Source code (original): " "" "https://github.com/AttorneyOnline/AO2-Client" + "

Source code (modified): " + "" + "https://git.sof.beauty/ao2-client" "

Major development:
" "OmniTroid, stonedDiscord, longbyte1, scatterflower, Cerapter, " "Crystalwarrior, Iamgoofball, in1tiate, Salanto" @@ -307,17 +311,21 @@ void Lobby::on_about_clicked() "is copyright (c) 2016-2022 Attorney Online developers. Open-source " "licenses apply. All other assets are the property of their " "respective owners." - "

Running on Qt version %2 with the miniaudio audio engine.
" - "

AVIF supported: %3
" - "WebP supported: %4
" - "APNG supported: %5" - "

Built on %6") - .arg(ao_app->get_version_string()) + "

Running on Qt %3 with miniaudio %4 and libsodium %5." + "

AVIF supported: %6
" + "WebP supported: %7
" + "APNG supported: %8" + "

Built on %9 (%10)") + .arg(ao_app->get_sof_version_string()) + .arg(ao_app->get_revision_string()) .arg(QLatin1String(QT_VERSION_STR)) + .arg(ma_version_string()) + .arg(sodium_version_string()) .arg(hasAvif ? tr("Yes") : tr("No")) .arg(hasWebp ? tr("Yes") : tr("No")) .arg(hasApng ? tr("Yes") : tr("No")) - .arg(QLatin1String(__DATE__)); + .arg(QLatin1String(__DATE__)) + .arg(QLatin1String(AO_BUILD_PROFILE)); QMessageBox::about(this, tr("About"), msg); } -- cgit