Made native library name a config const

This commit is contained in:
Garry Newman 2016-10-04 11:24:55 +01:00
parent 8b803ec003
commit 512c74640c
8 changed files with 797 additions and 786 deletions

View File

@ -5,7 +5,7 @@
namespace Facepunch.Steamworks.Test
{
[TestClass]
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
[DeploymentItem( Config.LibraryName + ".dll" )]
[DeploymentItem( "steam_appid.txt" )]
public partial class Client
{

View File

@ -4,7 +4,7 @@
namespace Facepunch.Steamworks.Test
{
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
[DeploymentItem( Config.LibraryName + ".dll" )]
[DeploymentItem( "steam_appid.txt" )]
[TestClass]
public class Friends

View File

@ -6,7 +6,7 @@
namespace Facepunch.Steamworks.Test
{
[TestClass]
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
[DeploymentItem( Config.LibraryName + ".dll" )]
[DeploymentItem( "steam_appid.txt" )]
public partial class Networking
{

View File

@ -8,7 +8,7 @@
namespace Facepunch.Steamworks.Test
{
[TestClass]
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
[DeploymentItem( Config.LibraryName + ".dll" )]
[DeploymentItem( "steam_appid.txt" )]
public partial class ServerList
{

View File

@ -6,7 +6,7 @@
namespace Facepunch.Steamworks.Test
{
[TestClass]
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
[DeploymentItem( Config.LibraryName + ".dll" )]
[DeploymentItem( "steam_appid.txt" )]
public class Stats
{

View File

@ -3,7 +3,7 @@
namespace Facepunch.Steamworks.Test
{
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
[DeploymentItem( Config.LibraryName + ".dll" )]
[DeploymentItem( "steam_appid.txt" )]
[DeploymentItem( "tier0_s.dll" )]
[DeploymentItem( "vstdlib_s.dll" )]

View File

@ -17,5 +17,16 @@ public static class Config
///
/// </summary>
public static bool UseThisCall { get; set; } = true;
/// <summary>
/// The Native dll to look for. This is the steam_api.dll renamed.
/// We need to rename the dll anyway because we can't dynamically choose the library
/// ie, we can't load steam_api64.dll on windows 64 platforms. So instead we choose to
/// keep the library name the same.
///
/// This is exposed only for the benefit of implementation - and cannot be changed at runtime.
/// </summary>
public const string LibraryName = "FacepunchSteamworksApi";
}
}

File diff suppressed because it is too large Load Diff