This commit is contained in:
Max Brunsfeld 2022-09-26 15:23:10 -07:00
parent 4784dbe498
commit da36eb3b41
4 changed files with 67 additions and 33 deletions

View file

@ -750,6 +750,10 @@ impl platform::Platform for MacPlatform {
}
}
fn os_name(&self) -> &'static str {
"macOS"
}
fn os_version(&self) -> Result<crate::AppVersion> {
unsafe {
let process_info = NSProcessInfo::processInfo(nil);