mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-27 21:43:14 +08:00
64位程序支持
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
+1
-1
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user