Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Improve iOS support #17950

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/avm2/globals/flash/system/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions render/wgpu/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down