1
0
mirror of synced 2024-11-24 15:50:16 +01:00

impr: Added GPU vendor and portable version flag to statistics

This commit is contained in:
WerWolv 2023-06-20 20:37:17 +02:00
parent f703b15165
commit 6d1f639bc6

View File

@ -80,9 +80,9 @@ namespace hex::init {
// Make telemetry request
nlohmann::json telemetry = {
{"uuid", uuid},
{"version", IMHEX_VERSION},
{"os", fmt::format("{}/{}/{}", ImHexApi::System::getOSName(), ImHexApi::System::getOSVersion(), ImHexApi::System::getArchitecture()) }
{ "uuid", uuid },
{ "version", fmt::format("{}/{}", IMHEX_VERSION, ImHexApi::System::isPortableVersion() ? "Portable" : "Installed") },
{ "os", fmt::format("{}/{}/{}/{}", ImHexApi::System::getOSName(), ImHexApi::System::getOSVersion(), ImHexApi::System::getArchitecture(), ImHexApi::System::getGPUVendor()) }
};
HttpRequest telemetryRequest("POST", ImHexApiURL + "/telemetry"s);