Skip to content

Commit

Permalink
Send packs and client version on ettpc multi hello
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Dec 10, 2018
1 parent 742a29d commit 5fb876e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/NetworkSyncManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,13 @@ ETTProtocol::Update(NetworkSyncManager* n, float fDeltaTime)
if (ws != nullptr) {
json hello;
hello["type"] = ettClientMessageMap[ettpc_hello];
hello["payload"]["version"] = ETTPCVERSION;
auto& payload = hello["payload"];
payload["version"] = ETTPCVERSION;
payload["client"] = GAMESTATE->GetEtternaVersion();
payload["packs"] = json::array();
auto& packs = GetSongGroupNames();
for(auto& pack : packs)
payload["packs"].push_back(pack);
Send(hello);
}
break;
Expand Down

0 comments on commit 5fb876e

Please sign in to comment.