Permalink
Browse files

Fixed API issues.

  • Loading branch information...
gibbed committed Nov 24, 2017
1 parent cbef61f commit ec28921bc78bba170dda29a6ec4982e756ca53fd
Showing with 7 additions and 6 deletions.
  1. +2 −1 SAM.API/SAM.API.csproj
  2. +1 −1 SAM.API/Steam.cs
  3. +2 −2 SAM.API/Wrappers/SteamApps003.cs
  4. +2 −2 SAM.API/Wrappers/SteamClient009.cs
View
@@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SAM.API</RootNamespace>
<AssemblyName>SAM.API</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ApplicationIcon>Pink.ico</ApplicationIcon>
<PublishUrl>publish\</PublishUrl>
@@ -28,6 +28,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
View
@@ -62,7 +62,7 @@ public static string GetInstallPath()
return (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\Software\Valve\Steam", "InstallPath", null);
}
[UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi)]
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
private delegate IntPtr NativeCreateInterface(string version, IntPtr returnCode);
private static NativeCreateInterface _CallCreateInterface;
@@ -31,9 +31,9 @@ public class SteamApps003 : NativeWrapper<ISteamApps003>
#region IsSubscribed
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
[return: MarshalAs(UnmanagedType.I1)]
private delegate bool NativeIsSubscribedApp(IntPtr self, Int64 gameId);
private delegate bool NativeIsSubscribedApp(IntPtr self, uint gameId);
public bool IsSubscribedApp(Int64 gameId)
public bool IsSubscribedApp(uint gameId)
{
return this.Call<bool, NativeIsSubscribedApp>(this.Functions.IsSubscribedApp, this.ObjectAddress, gameId);
}
@@ -41,11 +41,11 @@ public int CreateSteamPipe()
#region ReleaseSteamPipe
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
[return: MarshalAs(UnmanagedType.I1)]
private delegate bool NativeReleaseSteamPipe(IntPtr self);
private delegate bool NativeReleaseSteamPipe(IntPtr self, int pipe);
public bool ReleaseSteamPipe(int pipe)
{
return this.Call<bool, NativeReleaseSteamPipe>(this.Functions.ReleaseSteamPipe, this.ObjectAddress);
return this.Call<bool, NativeReleaseSteamPipe>(this.Functions.ReleaseSteamPipe, this.ObjectAddress, pipe);
}
#endregion

0 comments on commit ec28921

Please sign in to comment.