The Battle for Wesnoth  1.15.2+dev
Functions
desktop::apple Namespace Reference

Functions

std::string os_version ()
 Returns a string with the running OS name and version information. More...
 

Function Documentation

◆ os_version()

std::string desktop::apple::os_version ( )

Returns a string with the running OS name and version information.

On Windows, this is a string we generate ourselves by processing GetVersionEx's output. On OS X and Linux, this is the output of a command provided by the OS if available; failing that (and on other Unixes as well), we use the uname system call, which is hardly ever useful.

Definition at line 121 of file version.cpp.

References _(), ERR_DU, filesystem::file_exists(), os_version(), p, and unicode_cast().

Referenced by game_config::full_build_report(), desktop::os_version(), and gui2::dialogs::game_version::pre_show().