Skip to content

Commit d1e92d8

Browse files
committed
- Cleanup our product info and show patch version correctly
1 parent b0e3242 commit d1e92d8

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//#define USE_MAULLER_ONEDRIVE_FIX 1
88
//#define USE_STUBBJAX_TRANSPORT_CONTAIN_FIX 1
99

10+
#define GENERALS_ONLINE_VERSION_STRING "060526_QFE2" // NOTE: Format is critical here for Sentry to work
11+
1012
#define GENERALS_ONLINE_DISABLE_TEXTURE_FILTERING_AND_AA 1
1113

1214
#define GENERALS_ONLINE_TEMP_FIX_DRAW_ENTIRE_TERRAIN 1

GeneralsMD/Code/GameEngine/Source/Common/version.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,13 @@ UnicodeString Version::getUnicodeProductTitle() const
330330

331331
UnicodeString Version::getUnicodeProductVersion() const
332332
{
333+
#if defined(GENERALS_ONLINE)
334+
UnicodeString str;
335+
str.format(L"%hs", GENERALS_ONLINE_VERSION_STRING);
336+
return str;
337+
#else
333338
return getUnicodeGitVersion();
339+
#endif
334340
}
335341

336342
UnicodeString Version::getUnicodeProductAuthor() const

GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_Init.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,9 @@ void NGMP_OnlineServicesManager::InitSentry()
10461046

10471047
sentry_options_set_dsn(options, "https://61750bebd112d279bcc286d617819269@o4509316925554688.ingest.us.sentry.io/4509316927586304");
10481048
sentry_options_set_database_path(options, strDumpPath.c_str());
1049-
sentry_options_set_release(options, "generalsonline-client@060526_QFE2");
1049+
1050+
std::string strVersionStr = std::format("generalsonline-client@{}", GENERALS_ONLINE_VERSION_STRING);
1051+
sentry_options_set_release(options, strVersionStr.c_str());
10501052

10511053
#if defined(USE_TEST_ENV)
10521054
sentry_options_set_environment(options, "test");

GeneralsMD/Code/Main/WinMain.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -909,21 +909,15 @@ Int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
909909
// TODO_NGMP: Better solution
910910
#if defined(GENERALS_ONLINE)
911911
TheVersion->setVersion(VERSION_MAJOR, VERSION_MINOR, GENERALS_ONLINE_VERSION, GENERALS_ONLINE_NET_VERSION,
912-
#if !defined(_DEBUG)
913-
AsciiString("Generals Online Development Team | GitHub Buildserver"), AsciiString(""),
914-
#else
915-
AsciiString("Generals Online Development Team | Development Test Build"), AsciiString(""),
916-
#endif
912+
AsciiString("Generals Online Development Team"), AsciiString(""),
917913
AsciiString(__TIME__), AsciiString(__DATE__));
918914
#else
919915
TheVersion->setVersion(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILDNUM, VERSION_LOCALBUILDNUM,
920916
AsciiString(VERSION_BUILDUSER), AsciiString(VERSION_BUILDLOC),
921917
AsciiString(__TIME__), AsciiString(__DATE__));
922918
#endif
923919

924-
TheVersion->setVersion(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILDNUM, VERSION_LOCALBUILDNUM,
925-
AsciiString(VERSION_BUILDUSER), AsciiString(VERSION_BUILDLOC),
926-
AsciiString(__TIME__), AsciiString(__DATE__));
920+
927921

928922
// TheSuperHackers @refactor The instance mutex now lives in its own class.
929923

0 commit comments

Comments
 (0)