diff --git a/AppEnv.cpp b/AppEnv.cpp index 89bff93..6180e5b 100644 --- a/AppEnv.cpp +++ b/AppEnv.cpp @@ -44,6 +44,11 @@ QString AppEnv::getBuildDateTime() return GTA5SYNC_BUILDDATETIME; } +QString AppEnv::getBuildCode() +{ + return GTA5SYNC_BUILDCODE; +} + // Folder Stuff QString AppEnv::getGameFolder(bool *ok) diff --git a/AppEnv.h b/AppEnv.h index 2863791..2d911be 100644 --- a/AppEnv.h +++ b/AppEnv.h @@ -29,6 +29,7 @@ public: // Build Stuff static QString getBuildDateTime(); + static QString getBuildCode(); // Folder Stuff static QString getGameFolder(bool *ok = 0); diff --git a/TelemetryClass.cpp b/TelemetryClass.cpp index 245c1d5..6db570c 100644 --- a/TelemetryClass.cpp +++ b/TelemetryClass.cpp @@ -322,6 +322,7 @@ QJsonDocument TelemetryClass::getApplicationSpec() jsonObject["Version"] = GTA5SYNC_APPVER; jsonObject["BuildDateTime"] = AppEnv::getBuildDateTime(); jsonObject["BuildType"] = GTA5SYNC_BUILDTYPE; + jsonObject["BuildCode"] = AppEnv::getBuildCode(); jsonObject["QtVersion"] = qVersion(); jsonDocument.setObject(jsonObject); return jsonDocument; diff --git a/config.h b/config.h index ccc3b4e..cba07ee 100644 --- a/config.h +++ b/config.h @@ -92,6 +92,10 @@ #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Custom") #endif +#ifndef GTA5SYNC_BUILDCODE +#define GTA5SYNC_BUILDCODE "Source" +#endif + #ifdef GTA5SYNC_QCONF #ifndef GTA5SYNC_SHARE #define GTA5SYNC_SHARE "RUNDIR:SEPARATOR:..SEPARATOR:share"