(61d00a474) v0.9.7.1
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace Steamworks
|
||||
{
|
||||
internal static class Platform
|
||||
{
|
||||
#if PLATFORM_WIN64
|
||||
public const int StructPlatformPackSize = 8;
|
||||
public const string LibraryName = "steam_api64";
|
||||
public const CallingConvention MemberConvention = CallingConvention.Cdecl;
|
||||
#elif PLATFORM_WIN32
|
||||
public const int StructPlatformPackSize = 8;
|
||||
public const string LibraryName = "steam_api";
|
||||
public const CallingConvention MemberConvention = CallingConvention.ThisCall;
|
||||
#elif PLATFORM_POSIX32
|
||||
public const int StructPlatformPackSize = 4;
|
||||
public const string LibraryName = "libsteam_api";
|
||||
public const CallingConvention MemberConvention = CallingConvention.Cdecl;
|
||||
#elif PLATFORM_POSIX64
|
||||
public const int StructPlatformPackSize = 4;
|
||||
public const string LibraryName = "libsteam_api64";
|
||||
public const CallingConvention MemberConvention = CallingConvention.Cdecl;
|
||||
#endif
|
||||
|
||||
public const int StructPackSize = 4;
|
||||
|
||||
|
||||
|
||||
public static int MemoryOffset( int memLocation )
|
||||
{
|
||||
#if PLATFORM_64
|
||||
return memLocation;
|
||||
#else
|
||||
return memLocation / 2;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user