mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 17:09:25 +00:00
NOISSUE simplify system detection and user agent handling
Now it only checks OS kernel name/version. User agent is 'MultiMC5/$version'. Kernel info is passed through custom dimensions in analytics.
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
#include <sys/utsname.h>
|
||||
#include <fstream>
|
||||
|
||||
QString Sys::getSystemInfo()
|
||||
Sys::KernelInfo Sys::getKernelInfo()
|
||||
{
|
||||
Sys::KernelInfo out;
|
||||
struct utsname buf;
|
||||
uname(&buf);
|
||||
QString system(buf.sysname);
|
||||
QString release(buf.release);
|
||||
|
||||
return system + "; " + release;
|
||||
out.kernelName = buf.sysname;
|
||||
out.kernelVersion = buf.release;
|
||||
return out;
|
||||
}
|
||||
|
||||
uint64_t Sys::getSystemRam()
|
||||
|
Reference in New Issue
Block a user