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>();
}