mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-26 03:03:01 -03:00
UI: misc: simplify Intel Mac warning logic
This commit is contained in:
parent
dd16e3cee1
commit
e676fd8b17
1 changed files with 9 additions and 11 deletions
|
@ -735,21 +735,19 @@ namespace Ryujinx.Ava.UI.Windows
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool _intelMacWarningShown;
|
private static bool _intelMacWarningShown = !(OperatingSystem.IsMacOS() &&
|
||||||
|
(RuntimeInformation.OSArchitecture == Architecture.X64 ||
|
||||||
|
RuntimeInformation.OSArchitecture == Architecture.X86));
|
||||||
|
|
||||||
public static async Task ShowIntelMacWarningAsync()
|
public static async Task ShowIntelMacWarningAsync()
|
||||||
{
|
{
|
||||||
if (!_intelMacWarningShown &&
|
if (_intelMacWarningShown) return;
|
||||||
(OperatingSystem.IsMacOS() &&
|
|
||||||
(RuntimeInformation.OSArchitecture == Architecture.X64 ||
|
await Dispatcher.UIThread.InvokeAsync(async () => await ContentDialogHelper.CreateWarningDialog(
|
||||||
RuntimeInformation.OSArchitecture == Architecture.X86)))
|
"Intel Mac Warning",
|
||||||
{
|
"Intel Macs are not supported and will not work properly.\nIf you continue, do not come to our Discord asking for support;\nand do not report bugs on the GitHub. They will be closed."));
|
||||||
_intelMacWarningShown = true;
|
|
||||||
|
|
||||||
await Dispatcher.UIThread.InvokeAsync(async () => await ContentDialogHelper.CreateWarningDialog(
|
_intelMacWarningShown = true;
|
||||||
"Intel Mac Warning",
|
|
||||||
"Intel Macs are not supported and will not work properly.\nIf you continue, do not come to our Discord asking for support."));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue