Ver código fonte

Update game logging

Intercept WS messages for consistent logs like in the server.
master
TheoryOfNekomata 1 ano atrás
pai
commit
3a5ac14e59
2 arquivos alterados com 3 adições e 0 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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"



Carregando…
Cancelar
Salvar