1
0
mirror of synced 2024-11-28 09:30:51 +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 // Make telemetry request
nlohmann::json telemetry = { nlohmann::json telemetry = {
{"uuid", uuid}, { "uuid", uuid },
{"version", IMHEX_VERSION}, { "version", fmt::format("{}/{}", IMHEX_VERSION, ImHexApi::System::isPortableVersion() ? "Portable" : "Installed") },
{"os", fmt::format("{}/{}/{}", ImHexApi::System::getOSName(), ImHexApi::System::getOSVersion(), ImHexApi::System::getArchitecture()) } { "os", fmt::format("{}/{}/{}/{}", ImHexApi::System::getOSName(), ImHexApi::System::getOSVersion(), ImHexApi::System::getArchitecture(), ImHexApi::System::getGPUVendor()) }
}; };
HttpRequest telemetryRequest("POST", ImHexApiURL + "/telemetry"s); HttpRequest telemetryRequest("POST", ImHexApiURL + "/telemetry"s);