* Log in-game time along with configuration and gameplay events.
authorUrban Wallasch <urban.wallasch@freenet.de>
Mon, 29 Jul 2019 11:14:50 +0000 (13:14 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Mon, 29 Jul 2019 11:14:50 +0000 (13:14 +0200)
teleshmem.cpp

index 3be153dc26bd144bbd2725b05a4850e4e7b50e4c..6109f219fad858eb09c272c5b69c434e45545c33 100644 (file)
@@ -263,7 +263,7 @@ SCSAPI_VOID telemetry_gameplay(const scs_event_t event, const void *const event_
     }
 
     // Log the gameplay event.
-    log_print("Gameplay: %s\n", info->id);
+    log_print("<%u> Gameplay: %s\n", telemetry->game_time, info->id);
     for (const scs_named_value_t *current = info->attributes; current->name; ++current) {
         log_print("  %s", current->name);
         if (current->index != SCS_U32_NIL) {
@@ -307,7 +307,7 @@ SCSAPI_VOID telemetry_configuration(const scs_event_t event, const void *const e
     }
 
     // Log the configuration info.
-    log_print("Configuration: %s\n", info->id);
+    log_print("<%u> Configuration: %s\n", telemetry->game_time, info->id);
     for (const scs_named_value_t *current = info->attributes; current->name; ++current) {
         log_print("  %s", current->name);
         if (current->index != SCS_U32_NIL) {