mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-17 08:27:39 +02:00
* Added IArchSystem::getPlatformName()
* Added CArchSystemWindows::isWOW64() * Changed "Synergy" into "Synergy+" in various locations * Added output of platform name to startup message
This commit is contained in:
parent
6d0ddb6a6b
commit
5c89bc4b17
11 changed files with 92 additions and 9 deletions
|
@ -41,10 +41,20 @@ CArchSystemUnix::getOSName() const
|
|||
msg += info.release;
|
||||
msg += " ";
|
||||
msg += info.version;
|
||||
msg += " ";
|
||||
msg += info.machine;
|
||||
return msg;
|
||||
}
|
||||
#endif
|
||||
return "Unix <unknown>";
|
||||
return "Unix";
|
||||
}
|
||||
|
||||
std::string
|
||||
CArchSystemUnix::getPlatformName() const
|
||||
{
|
||||
#if defined(HAVE_SYS_UTSNAME_H)
|
||||
struct utsname info;
|
||||
if (uname(&info) == 0) {
|
||||
return std::string(info.machine);
|
||||
}
|
||||
#endif
|
||||
return "unknown";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue