2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
508 B

  1. #include "IZ_log.h"
  2. void IZ_LogHandleFromWS(i32 level, const char* line) {
  3. switch (level) {
  4. case LLL_ERR:
  5. SDL_LogError(SDL_LOG_CATEGORY_ERROR, "%s", line);
  6. return;
  7. case LLL_WARN:
  8. SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "%s", line);
  9. return;
  10. case LLL_NOTICE:
  11. SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "%s", line);
  12. return;
  13. case LLL_USER:
  14. default:
  15. break;
  16. }
  17. SDL_Log("%s", line);
  18. }
  19. void IZ_LogInterceptWSMessages(i32 level) {
  20. lws_set_log_level(level, IZ_LogHandleFromWS);
  21. }