1 #include "ge211_session.h" 2 #include "ge211_error.h" 3 #include "ge211_util.h" 18 setlocale(LC_ALL,
"en_US.utf8");
20 int mix_flags = MIX_INIT_OGG | MIX_INIT_MP3;
21 if ((Mix_Init(mix_flags) & mix_flags) != mix_flags) {
22 info_sdl() <<
"Could not pre-initialize audio mixer";
25 if (SDL_Init(SDL_INIT_VIDEO) < 0) {
26 fatal_sdl() <<
"Could not initialize graphics";
30 int img_flags = IMG_INIT_JPG | IMG_INIT_PNG;
31 if (IMG_Init(img_flags) != img_flags) {
32 fatal_sdl() <<
"Could not initialize image loading support";
37 fatal_sdl() <<
"Could not initialize text handling";
The game engine namespace.