chore: Make macOS specific things also work on iOS
This commit is contained in:
parent
673f28152e
commit
a3d58f0815
|
@ -16,7 +16,7 @@ pub fn get_os<'gc>(
|
|||
PlayerRuntime::AIR => {
|
||||
if cfg!(windows) {
|
||||
"Windows 10"
|
||||
} else if cfg!(target_os = "macos") {
|
||||
} else if cfg!(target_vendor = "apple") {
|
||||
"Mac OS 10.5.2"
|
||||
} else {
|
||||
"Linux 5.10.49"
|
||||
|
@ -37,7 +37,7 @@ pub fn get_version<'gc>(
|
|||
PlayerRuntime::AIR => {
|
||||
if cfg!(windows) {
|
||||
"WIN"
|
||||
} else if cfg!(target_os = "macos") {
|
||||
} else if cfg!(target_vendor = "apple") {
|
||||
"MAC"
|
||||
} else {
|
||||
"LNX"
|
||||
|
|
|
@ -1105,8 +1105,8 @@ pub async fn request_adapter_and_device(
|
|||
let names = get_backend_names(backend);
|
||||
if names.is_empty() {
|
||||
"Ruffle requires hardware acceleration, but no compatible graphics device was found (no backend provided?)".to_string()
|
||||
} else if cfg!(target_os = "macos") {
|
||||
"Ruffle does not support OpenGL on macOS.".to_string()
|
||||
} else if cfg!(target_vendor = "apple") {
|
||||
"Ruffle does not support OpenGL on macOS/iOS.".to_string()
|
||||
} else {
|
||||
format!("Ruffle requires hardware acceleration, but no compatible graphics device was found supporting {}", format_list(&names, "or"))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue