config->value("config/debug/trace/usecode", usecode_trace);
string uctrace; config->value("config/debug/trace/usecode", uctrace, "no"); if (uctrace == "yes") usecode_trace = 1; else if (uctrace == "verbose") usecode_trace = 2; else usecode_trace = 0;
int exult_main(void){	string data_path;	cout << "Exult V" << VERSION << "." << endl;	// Read in configuration file	config = new Configuration;	config->read_config_file(USER_CONFIGURATION_FILE);	// Setup virtual directories	config->value("config/disk/data_path",data_path,EXULT_DATADIR);	cout << "Data path = " << data_path << endl;	add_system_path("<DATA>", data_path);	if (!U7exists("<DATA>/exult.flx"))	{		add_system_path("<DATA>", EXULT_DATADIR);		if (!U7exists("<DATA>/exult.flx"))		{			add_system_path("<DATA>", "data");			if(!U7exists("<DATA>/exult.flx"))			{				// We've tried them all...				cerr << "Could not find 'exult.flx' anywhere." << endl;					cerr << "Please make sure Exult is correctly installed," << endl;				cerr << "and the Exult data path is specified in the configuration file." << endl;				cerr << "(See the README file for more information)" << endl;				exit(-1);			}		}	}	add_system_path("<STATIC>", "static");	add_system_path("<GAMEDAT>", "gamedat");//	add_system_path("<SAVEGAME>", "savegame");	add_system_path("<SAVEGAME>", ".");	// Convert from old format if needed	vector<string> vs=config->listkeys("config/disk/game",false);	if(vs.size()==0)	{		// Convert from the older format		string data_directory;		config->value("config/disk/u7path",data_directory,".");		config->set("config/disk/game/blackgate/path",data_directory,true);		const string	s("blackgate");		config->set("config/disk/game/blackgate/title",s,true);		vs.push_back(s);	}	// This is for Serpent Isle Paperdolls in Black Gate	string	serp_static;	config->value("config/disk/game/serpentisle/path",serp_static,".");	serp_static += "/static";	add_system_path("<SERPENT_STATIC>", serp_static.c_str());	// Enable tracing of intrinsics?	config->value("config/debug/trace/intrinsics",intrinsic_trace);	// Enable tracing of UC-instructions?	config->value("config/debug/trace/usecode", usecode_trace);#if USECODE_DEBUGGER	// Enable usecode debugger	config->value("config/debug/debugger/enable",usecode_debugging);	initialise_usecode_debugger();#endif	cheat.init();	Init();				// Create main window.	cheat.finish_init();	Mouse::mouse = new Mouse(gwin);	Mouse::mouse->set_shape(Mouse::hand);	int result = Play();		// start game	return result;}