comparison render_sdl.c @ 1359:8c6d2ed3b959

Use printf rather than info_message for message about game controller mappings so it does not pop up a modal when not run from a terminal
author Michael Pavone <pavone@retrodev.com>
date Fri, 12 May 2017 23:33:00 -0700
parents 03cb4dd2499f
children 89eb967fed72
comparison
equal deleted inserted replaced
1358:3716b90d3470 1359:8c6d2ed3b959
492 uint32_t db_size; 492 uint32_t db_size;
493 char *db_data = read_bundled_file("gamecontrollerdb.txt", &db_size); 493 char *db_data = read_bundled_file("gamecontrollerdb.txt", &db_size);
494 if (db_data) { 494 if (db_data) {
495 int added = SDL_GameControllerAddMappingsFromRW(SDL_RWFromMem(db_data, db_size), 1); 495 int added = SDL_GameControllerAddMappingsFromRW(SDL_RWFromMem(db_data, db_size), 1);
496 free(db_data); 496 free(db_data);
497 info_message("Added %d game controller mappings from gamecontrollerdb.txt\n", added); 497 printf("Added %d game controller mappings from gamecontrollerdb.txt\n", added);
498 } 498 }
499 499
500 SDL_JoystickEventState(SDL_ENABLE); 500 SDL_JoystickEventState(SDL_ENABLE);
501 501
502 atexit(render_quit); 502 atexit(render_quit);