Skip to content

Commit

Permalink
Disable Steamworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Chykary committed Jul 8, 2021
1 parent 589a663 commit 653a699
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 9 deletions.
4 changes: 3 additions & 1 deletion FizzySteamworks.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.IO;
Expand Down Expand Up @@ -298,4 +299,5 @@ private void OnDestroy()
Shutdown();
}
}
}
}
#endif // !DISABLESTEAMWORKS
6 changes: 4 additions & 2 deletions LegacyClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Steamworks;
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -166,4 +167,5 @@ protected override void OnReceiveInternalData(InternalMessages type, CSteamID cl
protected override void OnConnectionFailed(CSteamID remoteId) => OnDisconnected.Invoke();
public void FlushData() { }
}
}
}
#endif // !DISABLESTEAMWORKS
6 changes: 4 additions & 2 deletions LegacyCommon.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Steamworks;
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.Collections;
using UnityEngine;
Expand Down Expand Up @@ -146,4 +147,5 @@ public void ReceiveData()
protected abstract void OnReceiveData(byte[] data, CSteamID clientSteamID, int channel);
protected abstract void OnConnectionFailed(CSteamID remoteId);
}
}
}
#endif // !DISABLESTEAMWORKS
6 changes: 4 additions & 2 deletions LegacyServer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Steamworks;
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.Collections.Generic;
using UnityEngine;
Expand Down Expand Up @@ -150,4 +151,5 @@ protected override void OnConnectionFailed(CSteamID remoteId)
}
public void FlushData() { }
}
}
}
#endif // !DISABLESTEAMWORKS
4 changes: 3 additions & 1 deletion NextClient.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -216,4 +217,5 @@ public void FlushData()
SteamNetworkingSockets.FlushMessagesOnConnection(HostConnection);
}
}
}
}
#endif // !DISABLESTEAMWORKS
2 changes: 2 additions & 0 deletions NextCommon.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !DISABLESTEAMWORKS
using Mirror;
using Steamworks;
using System;
Expand Down Expand Up @@ -39,3 +40,4 @@ protected EResult SendSocket(HSteamNetConnection conn, byte[] data, int channelI
return (managedArray, channel);
}
}
#endif // !DISABLESTEAMWORKS
4 changes: 3 additions & 1 deletion NextServer.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !DISABLESTEAMWORKS
using Steamworks;
using System;
using System.Linq;
Expand Down Expand Up @@ -202,4 +203,5 @@ public void Shutdown()
}
}
}
}
}
#endif // !DISABLESTEAMWORKS

0 comments on commit 653a699

Please sign in to comment.