Cherry-pick SysInfo from #680
Signed-off-by: timoreo <contact@timoreo.fr>
This commit is contained in:
parent
9a4a92de4f
commit
a97387b692
3 changed files with 170 additions and 0 deletions
13
launcher/SysInfo.h
Normal file
13
launcher/SysInfo.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <QString>
|
||||
#include "settings/SettingsObject.h"
|
||||
#ifdef Q_OS_MACOS
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
namespace SysInfo {
|
||||
QString currentSystem();
|
||||
QString currentArch(const SettingsObjectPtr& settingsObj);
|
||||
QString runCheckerForArch(const SettingsObjectPtr& settingsObj);
|
||||
QString useQTForArch();
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue