added BuildCode

1.5.x
Syping 5 years ago
parent 10b6222ae8
commit 9362e88708
  1. 5
      AppEnv.cpp
  2. 1
      AppEnv.h
  3. 1
      TelemetryClass.cpp
  4. 4
      config.h

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

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

@ -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;

@ -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"

Loading…
Cancel
Save