64位程序支持

This commit is contained in:
rmbgame
2021-05-27 08:55:43 +08:00
parent 80fb6fcccd
commit f420414494
6 changed files with 32 additions and 12 deletions
@@ -19,7 +19,8 @@ namespace Microsoft.Extensions.DependencyInjection
if (DI.Platform == Platform.Windows)
{
services.AddSingleton<IDesktopPlatformService, WindowsDesktopPlatformServiceImpl>();
if (hasSteam && RuntimeInformation.ProcessArchitecture == Architecture.X86)
//if (hasSteam && RuntimeInformation.ProcessArchitecture == Architecture.X86)
if (hasSteam)
{
services.AddSingleton<ISteamworksLocalApiService, SteamworksLocalApiServiceImpl>();
}
@@ -20,7 +20,7 @@ namespace System.Application.Services.Implementation
SteamClient = new Client();
}
public bool IsSupported => RuntimeInformation.ProcessArchitecture == Architecture.X86;
public bool IsSupported => RuntimeInformation.ProcessArchitecture == (Architecture.X86 | Architecture.X64);
public void DisposeSteamClient()
{