mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-24 12:38:00 +03:00
Made native library name a config const
This commit is contained in:
parent
8b803ec003
commit
512c74640c
@ -5,7 +5,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||||||
namespace Facepunch.Steamworks.Test
|
namespace Facepunch.Steamworks.Test
|
||||||
{
|
{
|
||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
|
[DeploymentItem( Config.LibraryName + ".dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
[DeploymentItem( "steam_appid.txt" )]
|
||||||
public partial class Client
|
public partial class Client
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace Facepunch.Steamworks.Test
|
namespace Facepunch.Steamworks.Test
|
||||||
{
|
{
|
||||||
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
|
[DeploymentItem( Config.LibraryName + ".dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
[DeploymentItem( "steam_appid.txt" )]
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class Friends
|
public class Friends
|
||||||
|
@ -6,7 +6,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||||||
namespace Facepunch.Steamworks.Test
|
namespace Facepunch.Steamworks.Test
|
||||||
{
|
{
|
||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
|
[DeploymentItem( Config.LibraryName + ".dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
[DeploymentItem( "steam_appid.txt" )]
|
||||||
public partial class Networking
|
public partial class Networking
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||||||
namespace Facepunch.Steamworks.Test
|
namespace Facepunch.Steamworks.Test
|
||||||
{
|
{
|
||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
|
[DeploymentItem( Config.LibraryName + ".dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
[DeploymentItem( "steam_appid.txt" )]
|
||||||
public partial class ServerList
|
public partial class ServerList
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||||||
namespace Facepunch.Steamworks.Test
|
namespace Facepunch.Steamworks.Test
|
||||||
{
|
{
|
||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
|
[DeploymentItem( Config.LibraryName + ".dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
[DeploymentItem( "steam_appid.txt" )]
|
||||||
public class Stats
|
public class Stats
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||||||
|
|
||||||
namespace Facepunch.Steamworks.Test
|
namespace Facepunch.Steamworks.Test
|
||||||
{
|
{
|
||||||
[DeploymentItem( "FacepunchSteamworksApi.dll" )]
|
[DeploymentItem( Config.LibraryName + ".dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
[DeploymentItem( "steam_appid.txt" )]
|
||||||
[DeploymentItem( "tier0_s.dll" )]
|
[DeploymentItem( "tier0_s.dll" )]
|
||||||
[DeploymentItem( "vstdlib_s.dll" )]
|
[DeploymentItem( "vstdlib_s.dll" )]
|
||||||
|
@ -17,5 +17,16 @@ namespace Facepunch.Steamworks
|
|||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool UseThisCall { get; set; } = true;
|
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
Loading…
x
Reference in New Issue
Block a user