Ver código fonte

Debug app

Ensure app pointer is present in callbacks.
feature/data-structs
TheoryOfNekomata 2 anos atrás
pai
commit
cbc3311587
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      src/packages/game/IZ_app.c

+ 2
- 2
src/packages/game/IZ_app.c Ver arquivo

@@ -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) {


Carregando…
Cancelar
Salvar