瀏覽代碼

Update game logging

Intercept WS messages for consistent logs like in the server.
master
TheoryOfNekomata 1 年之前
父節點
當前提交
3a5ac14e59
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. +2
    -0
      src/packages/game/IZ_app.c
  2. +1
    -0
      src/packages/game/IZ_app.h

+ 2
- 0
src/packages/game/IZ_app.c 查看文件

@@ -26,6 +26,8 @@ typedef enum {
} IZ_AppInitializeResult;

IZ_AppInitializeResult IZ_AppInitialize(struct IZ_App* app, u8 argc, const char* argv[]) {
IZ_LogInterceptWSMessages(LLL_USER | LLL_ERR | LLL_WARN | LLL_NOTICE);

IZ_LogInfo(IZ_LOG_CATEGORY_GLOBAL, "Starting %s...", IZ_APP_NAME);
IZ_memset(app, 0, sizeof(struct IZ_App));



+ 1
- 0
src/packages/game/IZ_app.h 查看文件

@@ -10,6 +10,7 @@
#include "IZ_app_net.h"
#include "IZ_app_video.h"
#include "../log/IZ_log.h"
#include "../log/IZ_intercept.h"
#include "../string/IZ_string.h"
#include "../timer/IZ_timer.h"



Loading…
取消
儲存