Source/Core/Common/CommonFuncsObjC.mm
raw| 1 | // Copyright 2026 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #include "Common/CommonFuncs.h" |
| 5 | |
| 6 | #include <Foundation/Foundation.h> |
| 7 | |
| 8 | namespace Common |
| 9 | { |
| 10 | MacOSVersion GetMacOSVersion() |
| 11 | { |
| 12 | const NSOperatingSystemVersion ver = [[NSProcessInfo processInfo] operatingSystemVersion]; |
| 13 | return {ver.majorVersion, ver.minorVersion, ver.patchVersion}; |
| 14 | } |
| 15 | } // namespace Common |