瀏覽代碼

Debug app

Ensure app pointer is present in callbacks.
feature/data-structs
TheoryOfNekomata 2 年之前
父節點
當前提交
cbc3311587
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/packages/game/IZ_app.c

+ 2
- 2
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) {


Loading…
取消
儲存