mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +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]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public class Achievements
|
public class Achievements
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -8,7 +8,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public class App
|
public class App
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public partial class Client
|
public partial class Client
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -6,7 +6,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
{
|
{
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class Friends
|
public class Friends
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
{
|
{
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class Inventory
|
public class Inventory
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public class Leaderboard
|
public class Leaderboard
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -10,7 +10,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem("steam_api.dll")]
|
[DeploymentItem("steam_api.dll")]
|
||||||
[DeploymentItem("steam_api64.dll")]
|
[DeploymentItem("steam_api64.dll")]
|
||||||
[DeploymentItem("steam_appid.txt")]
|
|
||||||
public class Lobby
|
public class Lobby
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public partial class Networking
|
public partial class Networking
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -6,7 +6,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public class RemoteStorage
|
public class RemoteStorage
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public class RichPresence
|
public class RichPresence
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -5,7 +5,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
{
|
{
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
[DeploymentItem( "tier0_s.dll" )]
|
[DeploymentItem( "tier0_s.dll" )]
|
||||||
[DeploymentItem( "vstdlib_s.dll" )]
|
[DeploymentItem( "vstdlib_s.dll" )]
|
||||||
[DeploymentItem( "steamclient.dll" )]
|
[DeploymentItem( "steamclient.dll" )]
|
||||||
|
@ -10,7 +10,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public partial class ServerList
|
public partial class ServerList
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -8,7 +8,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public class Stats
|
public class Stats
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
@ -7,7 +7,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
{
|
{
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class Voice
|
public class Voice
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,6 @@ namespace Facepunch.Steamworks.Test
|
|||||||
[TestClass]
|
[TestClass]
|
||||||
[DeploymentItem( "steam_api.dll" )]
|
[DeploymentItem( "steam_api.dll" )]
|
||||||
[DeploymentItem( "steam_api64.dll" )]
|
[DeploymentItem( "steam_api64.dll" )]
|
||||||
[DeploymentItem( "steam_appid.txt" )]
|
|
||||||
public class WorkshopTest
|
public class WorkshopTest
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[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>();
|
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()
|
public virtual void Dispose()
|
||||||
{
|
{
|
||||||
foreach ( var h in CallbackHandles )
|
foreach ( var h in CallbackHandles )
|
||||||
@ -57,6 +69,9 @@ public virtual void Dispose()
|
|||||||
native.Dispose();
|
native.Dispose();
|
||||||
native = null;
|
native = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.Environment.SetEnvironmentVariable("SteamAppId", null );
|
||||||
|
System.Environment.SetEnvironmentVariable("SteamGameId", null );
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void SetupCommonInterfaces()
|
protected void SetupCommonInterfaces()
|
||||||
|
@ -63,7 +63,7 @@ public partial class Client : BaseSteamworks
|
|||||||
public User User { get; private set; }
|
public User User { get; private set; }
|
||||||
public RemoteStorage RemoteStorage { get; private set; }
|
public RemoteStorage RemoteStorage { get; private set; }
|
||||||
|
|
||||||
public Client( uint appId )
|
public Client( uint appId ) : base( appId )
|
||||||
{
|
{
|
||||||
if ( Instance != null )
|
if ( Instance != null )
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,7 @@ public partial class Server : BaseSteamworks
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initialize a Steam Server instance
|
/// Initialize a Steam Server instance
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Server( uint appId, ServerInit init )
|
public Server( uint appId, ServerInit init) : base( appId )
|
||||||
{
|
{
|
||||||
if ( Instance != null )
|
if ( Instance != null )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user