Fixing Steam Datagram Error.

This commit is contained in:
Detanup01 2024-07-25 15:14:09 +02:00 committed by GitHub
parent 4c0e1558ea
commit 5028aade9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,7 @@
* **[Detanup01]** Fix GetISteamGenericInterface when asking for Interface: STEAMTIMELINE_INTERFACE_V001
* **[KGHTW]** Fixing Steam Datagram Error.
## 2024/7/7 ## 2024/7/7
* **[Detanup01]** implement SDK v1.60, also thanks to **[universal963]** for the help in testing some functions * **[Detanup01]** implement SDK v1.60, also thanks to **[universal963]** for the help in testing some functions

View File

@ -35,7 +35,17 @@ public ISteamNetworkingUtils
std::chrono::time_point<std::chrono::steady_clock> initialized_time = std::chrono::steady_clock::now(); std::chrono::time_point<std::chrono::steady_clock> initialized_time = std::chrono::steady_clock::now();
FSteamNetworkingSocketsDebugOutput debug_function{}; FSteamNetworkingSocketsDebugOutput debug_function{};
bool relay_initialized = false; bool relay_initialized = false;
bool init_relay = false; bool init_relay = true; // Initializing relay immediately when we ask for it. Fixing Elden Ring SeamlessCoop
// NOTE from Detanup01: They should call InitializeRelayAccess BTW. Whoever write that mod cannot read valve docs.
/*
Valve docs:
If you know that you are going to be using the relay network
(for example, because you anticipate making P2P connections),
call this to initialize the relay network.
If you do not call this, the initialization will be delayed until
the first time you use a feature that requires access to the relay network,
which will delay that first access.
*/
static void free_steam_message_data(SteamNetworkingMessage_t *pMsg); static void free_steam_message_data(SteamNetworkingMessage_t *pMsg);
static void delete_steam_message(SteamNetworkingMessage_t *pMsg); static void delete_steam_message(SteamNetworkingMessage_t *pMsg);