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