gwin->read_gwin();
static void Init	(	){	Uint32 init_flags = SDL_INIT_VIDEO|SDL_INIT_TIMER;#ifdef NO_SDL_PARACHUTE	init_flags |= SDL_INIT_NOPARACHUTE;#endif	if (SDL_Init(init_flags) < 0)	{		cerr << "Unable to initialize SDL: " << SDL_GetError() << endl;		exit(-1);	}	std::atexit(SDL_Quit);		SDL_SysWMinfo info;		// Get system info.        SDL_GetWMInfo(&info);#ifdef USE_EXULTSTUDIO					// Want drag-and-drop events.	SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);#endif	SDL_ShowCursor(0);	SDL_VERSION(&info.version);	int w, h, sc, sclr;	// Default resolution is 320x200 with 2x scaling	w = 320;	h = 200;	sc = 2;	sclr = Image_window::SaI;	int sw, sh, scaleval;	string gr, gg, gb, scaler;	config->value("config/video/width", sw, w);	config->value("config/video/height", sh, h);	config->value("config/video/scale_method", scaler, "---");	config->value("config/video/gamma/red", gr, "1.0");	config->value("config/video/gamma/green", gg, "1.0");	config->value("config/video/gamma/blue", gb, "1.0");	config->value("config/video/scale", scaleval, sc);	if (scaler == "bilinear") sclr = Image_window::bilinear;	else if (scaler == "interlaced") sclr = Image_window::interlaced;	else if (scaler == "point") sclr = Image_window::point;	else if (scaler == "SuperEagle") sclr = Image_window::SuperEagle;	else if (scaler == "Super2xSaI") sclr = Image_window::Super2xSaI;	else config->set("config/video/scale_method","2xSaI",true);	Image_window8::set_gamma(atof(gr.c_str()), atof(gg.c_str()), atof(gb.c_str()));		gwin = new Game_window(sw, sh, scaleval, sclr);	current_res = find_resolution(sw, sh, scaleval);	Audio::Init();	bool disable_fades;	config->value("config/video/disable_fades", disable_fades, false);	gwin->set_fades_enabled(!disable_fades);	if (arg_buildmap >= 0)		BuildGameMap();	SDL_SetEventFilter(0);	// Show the banner	Exult_Game mygame;	game = 0;	store_system_paths();	do {		reset_system_paths();		fontManager.reset();		U7FileManager::get_ptr()->reset();		if(game)			delete game;		ExultMenu exult_menu(gwin);		mygame = exult_menu.run();		Game::create_game(mygame);							// Skip splash screen?		bool skip_splash;		config->value("config/gameplay/skip_splash", skip_splash);		if(!skip_splash) 			game->play_intro();	} while(!game->show_menu());	gwin->init_files();	gwin->setup_game();		// This will start the scene.					// Get scale factor for mouse.#ifdef USE_EXULTSTUDIO        SDL_GetWMInfo(&info);        xfd = ConnectionNumber(info.info.x11.display);	Server_init();			// Initialize server (for map-editor).	xdnd = new Xdnd(info.info.x11.display, info.info.x11.wmwindow,		info.info.x11.window, Drop_dragged_shape, Drop_dragged_chunk);#endif}