mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 05:35:35 +03:00
Removed steam_appid.txt requirement
This commit is contained in:
parent
1ccea72a13
commit
d2331e68e2
@ -8,7 +8,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public class Achievements
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -8,7 +8,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public class App
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public partial class Client
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -6,7 +6,6 @@ namespace Facepunch.Steamworks.Test
|
||||
{
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
[TestClass]
|
||||
public class Friends
|
||||
{
|
||||
|
@ -7,7 +7,6 @@ namespace Facepunch.Steamworks.Test
|
||||
{
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
[TestClass]
|
||||
public class Inventory
|
||||
{
|
||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public class Leaderboard
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -10,7 +10,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem("steam_api.dll")]
|
||||
[DeploymentItem("steam_api64.dll")]
|
||||
[DeploymentItem("steam_appid.txt")]
|
||||
public class Lobby
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public partial class Networking
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -6,7 +6,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public class RemoteStorage
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public class RichPresence
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -5,7 +5,6 @@ namespace Facepunch.Steamworks.Test
|
||||
{
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
[DeploymentItem( "tier0_s.dll" )]
|
||||
[DeploymentItem( "vstdlib_s.dll" )]
|
||||
[DeploymentItem( "steamclient.dll" )]
|
||||
|
@ -10,7 +10,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public partial class ServerList
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -8,7 +8,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public class Stats
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -7,7 +7,6 @@ namespace Facepunch.Steamworks.Test
|
||||
{
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
[TestClass]
|
||||
public class Voice
|
||||
{
|
||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
||||
[TestClass]
|
||||
[DeploymentItem( "steam_api.dll" )]
|
||||
[DeploymentItem( "steam_api64.dll" )]
|
||||
[DeploymentItem( "steam_appid.txt" )]
|
||||
public class WorkshopTest
|
||||
{
|
||||
[TestMethod]
|
||||
|
@ -1 +0,0 @@
|
||||
252490
|
@ -1 +0,0 @@
|
||||
252490
|
@ -26,6 +26,18 @@ public class BaseSteamworks : IDisposable
|
||||
|
||||
private List<SteamNative.CallbackHandle> CallbackHandles = new List<SteamNative.CallbackHandle>();
|
||||
|
||||
|
||||
protected BaseSteamworks( uint appId )
|
||||
{
|
||||
AppId = appId;
|
||||
|
||||
//
|
||||
// No need for the "steam_appid.txt" file any more
|
||||
//
|
||||
System.Environment.SetEnvironmentVariable("SteamAppId", AppId.ToString());
|
||||
System.Environment.SetEnvironmentVariable("SteamGameId", AppId.ToString());
|
||||
}
|
||||
|
||||
public virtual void Dispose()
|
||||
{
|
||||
foreach ( var h in CallbackHandles )
|
||||
@ -57,6 +69,9 @@ public virtual void Dispose()
|
||||
native.Dispose();
|
||||
native = null;
|
||||
}
|
||||
|
||||
System.Environment.SetEnvironmentVariable("SteamAppId", null );
|
||||
System.Environment.SetEnvironmentVariable("SteamGameId", null );
|
||||
}
|
||||
|
||||
protected void SetupCommonInterfaces()
|
||||
|
@ -63,7 +63,7 @@ public partial class Client : BaseSteamworks
|
||||
public User User { get; private set; }
|
||||
public RemoteStorage RemoteStorage { get; private set; }
|
||||
|
||||
public Client( uint appId )
|
||||
public Client( uint appId ) : base( appId )
|
||||
{
|
||||
if ( Instance != null )
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ public partial class Server : BaseSteamworks
|
||||
/// <summary>
|
||||
/// Initialize a Steam Server instance
|
||||
/// </summary>
|
||||
public Server( uint appId, ServerInit init )
|
||||
public Server( uint appId, ServerInit init) : base( appId )
|
||||
{
|
||||
if ( Instance != null )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user