Skip to content

Commit c4c697f

Browse files
committed
Improved App Version System
1 parent c36bbbc commit c4c697f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

OpenRCT2Launcher/OpenRCT2Launcher.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ QT += core gui widgets network multimedia
99
TARGET = OpenRCT2
1010
TEMPLATE = app
1111

12+
VERSION = v0.0.2
13+
1214

1315
SOURCES += main.cpp\
1416
mainwindow.cpp \
@@ -32,6 +34,8 @@ CONFIG += c++11
3234
# to maintain compatibility with libarchive 2
3335
QMAKE_CXXFLAGS += -Wno-deprecated-declarations
3436

37+
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
38+
3539
macx {
3640
INCLUDEPATH += /usr/local/opt/libarchive/include
3741
ICON = Icon/OpenRCT2.icns

OpenRCT2Launcher/configuration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Configuration::Configuration(QString file, QWidget *parent) :
1919
{
2020
QSettings main;
2121

22-
ui->launcherVersionMsg->setText(QStringLiteral("Launcher Version: " LAUNCHER_VERSION_STRING));
22+
ui->launcherVersionMsg->setText(QStringLiteral("Launcher Version: " APP_VERSION));
2323

2424
QVariant build = main.value("downloadId");
2525
if (build.isValid()) ui->buildVersionMsg->setText(QStringLiteral("OpenRCT2 Build: ") + build.toString());

OpenRCT2Launcher/platform.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#include <QtGlobal>
55

6-
#define LAUNCHER_VERSION_STRING "v0.0.2"
7-
86
#ifndef Q_PROCESSOR_X86
97
#error Needs x86 to run OpenRCT2
108
#endif

0 commit comments

Comments
 (0)