Skip to content

Commit

Permalink
fix: add warning about emulation performance impact
Browse files Browse the repository at this point in the history
  • Loading branch information
ohaiibuzzle committed Jun 18, 2024
1 parent f45641c commit 9369023
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Whisky/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -3140,6 +3140,16 @@
}
}
},
"config.avx.warning" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "This option may impact emulation performance"
}
}
}
},
"config.buildVersion" : {
"localizations" : {
"ar" : {
Expand Down
11 changes: 10 additions & 1 deletion Whisky/Views/Bottle/ConfigView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,16 @@ struct ConfigView: View {
}
if #available(macOS 15, *) {
Toggle(isOn: $bottle.settings.avxEnabled) {
Text("config.avx")
VStack(alignment: .leading) {
Text("config.avx")
HStack {
Image(systemName: "exclamationmark.triangle")
.font(.subheadline)
Text("config.avx.warning")
.fontWeight(.light)
.font(.subheadline)
}
}
}
}
}
Expand Down

0 comments on commit 9369023

Please sign in to comment.