From cbc331158793c2004bf214602998cd2bda093ec5 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Tue, 14 Jun 2022 11:44:49 +0800 Subject: [PATCH] Debug app Ensure app pointer is present in callbacks. --- src/packages/game/IZ_app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packages/game/IZ_app.c b/src/packages/game/IZ_app.c index 195f506..639165e 100644 --- a/src/packages/game/IZ_app.c +++ b/src/packages/game/IZ_app.c @@ -152,7 +152,7 @@ void IZ_AppHandlePortMIDIEvents(IZ_App* app) { void IZ_AppHandleNetworkingInboundBinaryEvents(IZ_App* app, void* binary_raw, size_t len) { u8* binary = binary_raw; size_t i; - printf("Binary"); + printf("%llu: Binary", app->ticks); for (i = 0; i < len; i += 1) { printf("%c%x", i == 0 ? '(' : ' ', binary[i]); } @@ -160,7 +160,7 @@ void IZ_AppHandleNetworkingInboundBinaryEvents(IZ_App* app, void* binary_raw, si } void IZ_AppHandleNetworkingInboundTextEvents(IZ_App* app, const char* text, size_t len) { - printf("String(%s)\n", text); + printf("%llu: String(%s)\n", app->ticks, text); } IZ_ProcedureResult IZ_AppHandleInputEvents(IZ_App* app) {