MCPcopy Create free account
hub / github.com/TASEmulators/fceux / LoadFCEUConfig

Function LoadFCEUConfig

src/drivers/common/config.cpp:363–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363void LoadFCEUConfig(const char *filename, CFGSTRUCT *cfgst)
364{
365 FILE *fp = fopen(filename,"rb");
366
367 cfgmap.clear();
368
369 //make sure there is a version key set
370 cfgmap["!version"] = "1";
371
372 if(fp==NULL)
373 return;
374
375 cfg_Parse(fp);
376 cfg_NewToOld(cfgst);
377
378 fclose(fp);
379}

Callers 2

LoadConfigFunction · 0.85
LoadConfigFunction · 0.85

Calls 3

cfg_ParseFunction · 0.85
cfg_NewToOldFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected