mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
add dedicated flag to gameInfo
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
*****************************************************************************/
|
||||
|
||||
extern "C" {
|
||||
#include "../openrct2.h"
|
||||
#include "../platform/platform.h"
|
||||
}
|
||||
|
||||
@@ -904,6 +905,7 @@ void Network::AdvertiseHeartbeat()
|
||||
|
||||
json_t *body = json_object();
|
||||
json_object_set(body, "token", json_string(advertise_token.c_str()));
|
||||
json_object_set(body, "dedicated", json_boolean(gOpenRCT2Headless));
|
||||
json_object_set(body, "players", json_integer(network_get_num_players()));
|
||||
|
||||
json_t *gameInfo = json_object();
|
||||
|
||||
Reference in New Issue
Block a user