Browse Source

Debug app

Ensure app pointer is present in callbacks.
feature/data-structs
TheoryOfNekomata 2 years ago
parent
commit
cbc3311587
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/packages/game/IZ_app.c

+ 2
- 2
src/packages/game/IZ_app.c View File

@@ -152,7 +152,7 @@ void IZ_AppHandlePortMIDIEvents(IZ_App* app) {
void IZ_AppHandleNetworkingInboundBinaryEvents(IZ_App* app, void* binary_raw, size_t len) { void IZ_AppHandleNetworkingInboundBinaryEvents(IZ_App* app, void* binary_raw, size_t len) {
u8* binary = binary_raw; u8* binary = binary_raw;
size_t i; size_t i;
printf("Binary");
printf("%llu: Binary", app->ticks);
for (i = 0; i < len; i += 1) { for (i = 0; i < len; i += 1) {
printf("%c%x", i == 0 ? '(' : ' ', binary[i]); 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) { 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) { IZ_ProcedureResult IZ_AppHandleInputEvents(IZ_App* app) {


Loading…
Cancel
Save