fix bilibili server crash

This commit is contained in:
DismissedLight
2024-01-03 20:40:37 +08:00
parent 96e42f51f0
commit dd59302bb3

View File

@@ -29,6 +29,11 @@ internal sealed partial class GameAccountService : IGameAccountService
{
ArgumentNullException.ThrowIfNull(gameAccounts);
if (schemeType is SchemeType.ChineseBilibili)
{
return default;
}
string? registrySdk = RegistryInterop.Get(schemeType);
if (string.IsNullOrEmpty(registrySdk))
{
@@ -62,6 +67,11 @@ internal sealed partial class GameAccountService : IGameAccountService
{
ArgumentNullException.ThrowIfNull(gameAccounts);
if (schemeType is SchemeType.ChineseBilibili)
{
return default;
}
string? registrySdk = RegistryInterop.Get(schemeType);
if (string.IsNullOrEmpty(registrySdk))