Shared/Environment.h file

Namespace Death::Environment.

Namespaces

namespace Death
Shared root namespace.
namespace Death::Environment
Platform-specific environment helper functions.

Functions

auto IsSandboxed() -> bool
Returns whether the application is running in a sandboxed environment.
auto GetAppleVersion() -> Containers::String
Returns version of Apple operating system running this application.
auto GetSwitchVersion() -> std::uint32_t
Returns version of Nintendo Switch firmware running this application.
auto HasSwitchAtmosphere() -> bool
Returns true if this device is running Atmosphère custom firmware.
auto GetUnixVersion() -> Containers::String
Returns name and version of Unix system running this application.
auto IsWindowsVista() -> bool
Returns true if this application is running on Windows® Vista or later.
auto IsWindows7() -> bool
Returns true if this application is running on Windows® 7 or later.
auto IsWindows8() -> bool
Returns true if this application is running on Windows® 8 or later.
auto IsWindows10() -> bool
Returns true if this application is running on Windows® 10 or later.
auto IsWindows11() -> bool
Returns true if this application is running on Windows® 11 or later.
auto QueryUnbiasedInterruptTime() -> std::uint64_t
Returns the current unbiased interrupt-time count, in units of 100 nanoseconds.
auto QueryUnbiasedInterruptTimeAsMs() -> std::uint64_t
Returns the current unbiased interrupt-time count, in milliseconds.

Variables

const std::uint64_t WindowsVersion
Version of Windows® operating system running this application.
const DeviceType CurrentDeviceType
Type of device running this application.