Skip to content

Commit 63dadf6

Browse files
committed
Do not #define STEAMNETWORKINGSOCKETS_ENABLE_STEAMNETWORKINGMESSAGES by default on console
We really, *really* would prefer people to use the connection-oriented APIs. P4:7324311
1 parent 4e961ee commit 63dadf6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/steamnetworkingsockets/steamnetworkingsockets_internal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
#define STEAMNETWORKINGSOCKETS_ENABLE_SDR
4545
#endif
4646

47-
// Always enable ISteamNetworkingMessages, unless it is specifically
48-
// disabled
49-
#ifndef STEAMNETWORKINGSOCKETS_DISABLE_STEAMNETWORKINGMESSAGES
47+
// Always enable ISteamNetworkingMessages on PC, unless it is specifically
48+
// disabled. On console, it's opt *in*
49+
#if !defined( STEAMNETWORKINGSOCKETS_DISABLE_STEAMNETWORKINGMESSAGES ) && !defined( STEAMNETWORKINGSOCKETS_ENABLE_STEAMNETWORKINGMESSAGES ) && !IsConsole()
5050
#define STEAMNETWORKINGSOCKETS_ENABLE_STEAMNETWORKINGMESSAGES
5151
#endif
5252

0 commit comments

Comments
 (0)