Merge branch 'master' into TPIDR2_EL0

This commit is contained in:
Evan Husted 2024-11-19 13:01:43 -06:00 committed by GitHub
commit d1c9eb25aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,13 +101,13 @@ namespace Ryujinx.UI.Common.Helper
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@$"Software\Classes\{ext}");
if (key is null)
var openCmd = key?.OpenSubKey(@"shell\open\command");
if (openCmd is null)
{
return false;
}
var openCmd = key.OpenSubKey(@"shell\open\command");
string keyValue = (string)openCmd.GetValue(string.Empty);
return keyValue is not null && (keyValue.Contains("Ryujinx") || keyValue.Contains(AppDomain.CurrentDomain.FriendlyName));