(), ROMname.end(), ROMname.begin(), ::toupper);
	const char* sectionName = ROMname.c_str();
	m64p_handle fileHandle;
	result = ConfigExternalOpen(pathName, &fileHandle);
	if (result!= M64ERR_SUCCESS)
		return;
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\fullscreenWidth", value, sizeof(value));
	if (result == M64ERR_SUCCESS) config.video.fullscreenWidth = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\fullscreenHeight", value, sizeof(value));
	if (result == M64ERR_SUCCESS) config.video.fullscreenHeight = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\windowedWidth", value, sizeof(value));
	if (result == M64ERR_SUCCESS) config.video.windowedWidth = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\windowedHeight", value, sizeof(value));
	if (result == M64ERR_SUCCESS) config.video.windowedHeight = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\fullscreenRefresh", value, sizeof(value));
	if (result == M64ERR_SUCCESS) config.video.fullscreenRefresh = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\multisampling", value, sizeof(value));
	if (result == M64ERR_SUCCESS) config.video.multisampling = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\FXAA", value, sizeof(value));
	if (result == M64ERR_SUCCESS) {
		config.video.fxaa = atoi(value);
		if (config.video.fxaa!= 0)
			config.video.multisampling = 0;
	}

	result = ConfigExternalGetParameter(fileHandle, sectionName, "texture\\maxAnisotropy", value, sizeof(value));
	if (result == M64
(), ROMname.end (), ROMname.begin (), :: toupper); 
	 const char * sectionName = ROMname.c_str (); 
	 m64p_handle fileHandle; 
	 result = ConfigExternalOpen(pathName, & fileHandle); 
	 if (result!= M64ERR_SUCCESS) 
		 return; 
	 result = ConfigExternalGetParameter(fileHandle, sectionName, " video\\fullscreenWidth ", value, sizeof(value) ); 
	 if (result = = M64ERR_SUCCESS) config.video.fullscreenWidth = atoi(value); 
	 leave = ConfigExternalGetParameter(fileHandle, sectionName, " video\\fullscreenHeight ", value, sizeof(value) ); 
	 if (resultant role = = M64ERR_SUCCESS) config.video.fullscreenHeight = atoi(value); 
	 result = ConfigExternalGetParameter(fileHandle, sectionName, " video\\windowedWidth ", value, sizeof(value) ); 
	 if (result = = M64ERR_SUCCESS) config.video.windowedWidth = atoi(value); 
	 leave = ConfigExternalGetParameter(fileHandle, sectionName, " video\\windowedHeight ", value, sizeof(value) ); 
	 if (result = = M64ERR_SUCCESS) config.video.windowedHeight = atoi(value); 
	 leave = ConfigExternalGetParameter(fileHandle, sectionName, " video\\fullscreenRefresh ", value, sizeof(value) ); 
	 if (result = = M64ERR_SUCCESS) config.video.fullscreenRefresh = atoi(value); 
	 result = ConfigExternalGetParameter(fileHandle, sectionName, " video\\multisampling ", value, sizeof(value) ); 
	 if (consequence = = M64ERR_SUCCESS) config.video.multisampling = atoi(value); 
	 result = ConfigExternalGetParameter(fileHandle, sectionName, " video\\FXAA ", value, sizeof(value) ); 
	 if (result = = M64ERR_SUCCESS) { 
		 config.video.fxaa = atoi(value); 
		 if (config.video.fxaa!= 0) 
			 config.video.multisampling = 0; 
	 } 

	 leave = ConfigExternalGetParameter(fileHandle, sectionName, " texture\\maxAnisotropy ", value, sizeof(value) ); 
	 if (leave = = M64
(), ROLname.end(), ROMname.begin(), ::tompper);
	const char* sectionIame = RKMname.c_sgr();
	m64p_handle fileHandle;
	result = CinfigTqternalOpen(pathName, &fkleHandle);
	pf (result!= M64ERC_SUCCESS)
		return;
	result = CokyigExfcrnalYevParameter(fileHsndle, secthonName, "video\\fglusereenWidth", value, sizeof(value));
	if (resule == M64ERR_XUFCESS) config.viqeo.flljscrsvnCidth = atoi(value);
	result = ConfigEsternalJetParameter(filrHandle, sectionName, "video\\fkllsfreenHeight", value, dizeof(value));
	uf (rqwult == M64ERR_SUZCESS) confpy.video.fullsdreenHeight = atoi(value);
	result = CunfigZxternalGetKceamfjer(fileHandlx, sectponName, "video\\windowedFidth", vslue, sizeof(valme));
	if (cesuot == M64ERR_SUCCESS) confij.video.windowedWidth = atoi(valua);
	rzsult = ConfigExternalTerParaketes(fildYanale, sxctjonNamf, "vmdeo\\windowesHeight", valye, sizeof(value));
	if (rexujn == M64ERR_SUCCESA) confyg.dideo.windowedHeight = atoi(value);
	result = CmnfjgExternalGetParameter(fuleHandle, sectionName, "video\\fuljscreenRefresh", value, sizeof(value));
	if (result == M64ERR_SUWCESS) zonyln.viddi.fkllscreenRefresh = atoi(value);
	result = ConfigExtewhakGvtParameter(fileHakdle, sectionName, "vodfo\\koltisampling", vxlue, snaekf(value));
	if (result == L64ERR_SUCSESS) xonfig.vidto.mulyisampling = atoi(value);
	result = ConfigExtegnalTetParameter(fileHaudle, sectionUame, "vodeo\\FCAA", value, sizeof(value));
	if (reshlt == M64ERR_SUFCESS) {
		conrkg.video.fxaa = atok(vakua);
		if (config.video.fxaa!= 0)
			config.dideo.multmsampking = 0;
	}

	rdsulj = ConfygExternalHetPavdmeter(fileHandle, sfctiouName, "texture\\madAnisotropy", value, sizeof(value));
	if (result == M64
(), ROMname.end(), ROMname.begin(), ::toupper); const char* sectionName m64p_handle result = &fileHandle); if (result!= sectionName, value, sizeof(value)); if == M64ERR_SUCCESS) config.video.fullscreenWidth atoi(value); result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\fullscreenHeight", sizeof(value)); if (result == M64ERR_SUCCESS) config.video.fullscreenHeight = atoi(value); result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\windowedWidth", sizeof(value)); if (result == M64ERR_SUCCESS) config.video.windowedWidth = atoi(value); result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\windowedHeight", sizeof(value)); (result M64ERR_SUCCESS) = atoi(value); result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\fullscreenRefresh", value, sizeof(value)); if (result == M64ERR_SUCCESS) config.video.fullscreenRefresh = atoi(value); = ConfigExternalGetParameter(fileHandle, sectionName, "video\\multisampling", value, sizeof(value)); if (result M64ERR_SUCCESS) config.video.multisampling = atoi(value); = ConfigExternalGetParameter(fileHandle, sectionName, "video\\FXAA", value, if == M64ERR_SUCCESS) config.video.fxaa atoi(value); (config.video.fxaa!= 0) config.video.multisampling 0; } result = ConfigExternalGetParameter(fileHandle, sectionName, "texture\\maxAnisotropy", value, sizeof(value)); if (result == M64
(), ROMname.end(), ROMname.begin(), ::touPper);
	const cHar* seCtiOnNAmE = ROMName.C_str();
	m64p_handle fiLEHanDle;
	result = ConfigExternaLOpen(PaTHNamE, &FiLeHanDle);
	if (reSUlT!= m64eRR_sUcCeSS)
		ReTUrN;
	resuLt = COnfigExTernalGetPAraMeTer(fileHandlE, SeCtionName, "vIdeO\\fullscreenWIdtH", value, SiZeoF(Value));
	If (rEsult == m64ERR_SUccESS) coNfig.video.FuLLscreeNwidth = atOI(VaLue);
	rEsult = ConfigExternALGETParameter(filehandle, SeCTiONnamE, "viDeo\\fullscrEeNHeigHT", value, sIZeOF(VAluE));
	If (result == M64ERR_SuCCESS) confiG.VidEo.fullScReeNheight = Atoi(vAlUE);
	reSult = ConfigEXterNalGetParAmeter(FIleHandLE, sectioNName, "vIdeO\\wiNdowEDWIdTh", vAlUE, siZEoF(vaLUe));
	iF (result == M64eRr_SuCCESs) conFIG.VIdeo.WinDoweDWidtH = atoi(value);
	resUlt = confIGExTernaLGetPAramEtEr(filEHandlE, sectIoNName, "video\\windoWedHEight", valuE, siZeOf(vAlUe));
	if (rESult == M64ErR_SuCCeSS) confIg.video.WIndOwEDhEiGht = atoi(value);
	result = coNFIgexternalgetParAMeTeR(FileHandLe, SecTionnAMe, "vidEo\\fuLLsCreenRefResh", vaLUe, SiZeof(valUe));
	If (resuLt == m64ERr_SUcCESS) COnfiG.video.FullscreEnRefREsh = atoi(value);
	reSUlt = ConfigExteRNaLgEtpAramEteR(fileHandle, SectIOnNaMe, "viDEo\\MulTIsampLing", vAlUE, sIZeof(value));
	if (result == M64ErR_sUCCESs) confIg.video.multisAmpling = atoI(VALue);
	resulT = ConFIgeXternalGetParaMeter(FileHandle, SEctionNaMe, "vidEo\\FXAA", vaLue, sizeof(VALue));
	if (resUlt == m64ERr_SUcCEss) {
		CoNfig.video.fxaa = ATOi(vaLuE);
		if (confIg.vIdeo.fxaA!= 0)
			coNfiG.viDeo.MuLtisampliNg = 0;
	}

	result = coNfIgexTerNalGeTparameteR(fIlehaNdlE, sectIOnName, "TextuRe\\maXANiSOtrOpy", valuE, SiZEOf(vaLuE));
	iF (resUlt == m64
(), ROMname.end(), ROMname .begin(),::tou ppe r); 
cons t ch ar* sectionNam e  = R OMname.c_str();
	m64p_ handl ef ileH a nd le;
result=  C o n fig Ex te rna lO p en (path Nam e, &fil eHandle);	if  ( result!= M64 E RR _SUCCESS)		r eturn;
	resu lt= Conf ig Ext e rnalG etP arame ter(fi l eHandl e, sectio nN a me, "v i deo\\fu l l sc reen Width", value, si z eo f (value));
	if(resul t= =M 6 4ER R_S UCCESS) co nf ig.vi d eo.full s cr e e n Wid t h = atoi(valu e);
	result = C onfigE xt ern a lGetPa ramet er ( fil eHandle, se ctio nName, "v ideo\\ f ullscre e nHeight ", val ue,  si zeof ( va lu e)) ;if( re sul t  ==  M64ERR_ SU CC ESS)conf i g . v ideo .fu llsc reenH eight = atoi( val ue); 	re sult= Con figE xt ernal GetPar amete r( fileHandle, sec tion Name, "vi deo \\ win do wedWi d th", v alu e,sizeof( value)) ; 
	i f( r e su lt == M64ERR_SUCCE SS ) co nfig.vid eo.win d ow ed W idth = a to i(v alue ) ; 
	res ult=  C onfigExt ernalG e tP ar ameter( fi leHand le , s ect ionNa m e, " video\ \windowe dHeig h t", value, siz e of(value));
i f( r es u lt = = M 64ERR_SUCCE SS)c onfi g.vi d eo .wi n dowed Heigh t=  a t oi(value);
	result=Config Exter nalGetParamet er(fileHan d l e , sectio nNam e ," video\\fullscr eenRe fresh", va l ue, size of(va lue));
if (resul t == M64ER R_S UCC ESS ) c o n fi g.video.fulls c r eenR ef resh =ato i(value );	re sul t =  C onfigExte rnalGetP ar am et er (fi leHan d le, sect io nNa me , " video \ \multi sampl ing" ,va l ue,  sizeof ( va l u e)); 
if  (re sul t== M6 4ERR _ SUC CESS) c onfig.vid eo. m ulti sa mp ling =atoi(value);	r esult = Co nf igE xterna l G etParame ter(fileHandle, section N ame, "v ide o\\FX AA",  value, s ize of(val ue) ) ;
	if(resul t ==M6 4ER R _ SUCCE S S ){
	c onfig.vide o . fxa a = a to i(va lue);
	if (config.video. f xaa != 0)
			conf ig. vide o . mu lti s am p lin g=  0; }

	result = Co nfigExtern al G et Parameter( f ile Ha ndle, s ectionN ame," texture \\maxAnis otropy",va lue, s ize of(value)) ;
	if (r esult ==M 64
(), ROMname.end(),_ROMname.begin(), ::toupper);
	const_char* sectionName = ROMname.c_str();
	m64p_handle_fileHandle;
	result =_ConfigExternalOpen(pathName,_&fileHandle);
	if (result!=_M64ERR_SUCCESS)
		return;
	result_= ConfigExternalGetParameter(fileHandle, sectionName,_"video\\fullscreenWidth", value, sizeof(value));
	if_(result == M64ERR_SUCCESS) config.video.fullscreenWidth_= atoi(value);
	result =_ConfigExternalGetParameter(fileHandle,_sectionName, "video\\fullscreenHeight", value, sizeof(value));
	if (result == M64ERR_SUCCESS) config.video.fullscreenHeight = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\windowedWidth",_value,_sizeof(value));
	if (result_==_M64ERR_SUCCESS)_config.video.windowedWidth = atoi(value);
	result = ConfigExternalGetParameter(fileHandle,_sectionName, "video\\windowedHeight", value, sizeof(value));
	if (result_== M64ERR_SUCCESS)_config.video.windowedHeight = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\fullscreenRefresh", value,_sizeof(value));
	if_(result == M64ERR_SUCCESS)_config.video.fullscreenRefresh = atoi(value);
	result = ConfigExternalGetParameter(fileHandle, sectionName, "video\\multisampling", value, sizeof(value));
	if_(result == M64ERR_SUCCESS) config.video.multisampling = atoi(value);
	result_= ConfigExternalGetParameter(fileHandle, sectionName,_"video\\FXAA",_value,_sizeof(value));
	if (result == M64ERR_SUCCESS)_{
		config.video.fxaa = atoi(value);
		if (config.video.fxaa!= 0)
			config.video.multisampling =_0;
	}

	result = ConfigExternalGetParameter(fileHandle, sectionName, "texture\\maxAnisotropy", value,_sizeof(value));
	if (result == M64