Shared/Environment.h file

Namespace Death::Environment.

Namespaces

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

Functions

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

Properties

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