added BuildCode

This commit is contained in:
Syping 2018-02-07 10:20:59 +01:00
parent 10b6222ae8
commit 9362e88708
4 changed files with 11 additions and 0 deletions

View File

@ -44,6 +44,11 @@ QString AppEnv::getBuildDateTime()
return GTA5SYNC_BUILDDATETIME; return GTA5SYNC_BUILDDATETIME;
} }
QString AppEnv::getBuildCode()
{
return GTA5SYNC_BUILDCODE;
}
// Folder Stuff // Folder Stuff
QString AppEnv::getGameFolder(bool *ok) QString AppEnv::getGameFolder(bool *ok)

View File

@ -29,6 +29,7 @@ public:
// Build Stuff // Build Stuff
static QString getBuildDateTime(); static QString getBuildDateTime();
static QString getBuildCode();
// Folder Stuff // Folder Stuff
static QString getGameFolder(bool *ok = 0); static QString getGameFolder(bool *ok = 0);

View File

@ -322,6 +322,7 @@ QJsonDocument TelemetryClass::getApplicationSpec()
jsonObject["Version"] = GTA5SYNC_APPVER; jsonObject["Version"] = GTA5SYNC_APPVER;
jsonObject["BuildDateTime"] = AppEnv::getBuildDateTime(); jsonObject["BuildDateTime"] = AppEnv::getBuildDateTime();
jsonObject["BuildType"] = GTA5SYNC_BUILDTYPE; jsonObject["BuildType"] = GTA5SYNC_BUILDTYPE;
jsonObject["BuildCode"] = AppEnv::getBuildCode();
jsonObject["QtVersion"] = qVersion(); jsonObject["QtVersion"] = qVersion();
jsonDocument.setObject(jsonObject); jsonDocument.setObject(jsonObject);
return jsonDocument; return jsonDocument;

View File

@ -92,6 +92,10 @@
#define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Custom") #define GTA5SYNC_BUILDTYPE QT_TRANSLATE_NOOP("AboutDialog", "Custom")
#endif #endif
#ifndef GTA5SYNC_BUILDCODE
#define GTA5SYNC_BUILDCODE "Source"
#endif
#ifdef GTA5SYNC_QCONF #ifdef GTA5SYNC_QCONF
#ifndef GTA5SYNC_SHARE #ifndef GTA5SYNC_SHARE
#define GTA5SYNC_SHARE "RUNDIR:SEPARATOR:..SEPARATOR:share" #define GTA5SYNC_SHARE "RUNDIR:SEPARATOR:..SEPARATOR:share"