MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / saveFile

Method saveFile

src/Settings.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void Settings::saveFile()
53{
54 const std::string path = getHomePath() + "/.emulationstation/es_settings.cfg";
55
56 pugi::xml_document doc;
57
58 saveMap<std::string, bool>(doc, mBoolMap, "bool");
59 saveMap<std::string, int>(doc, mIntMap, "int");
60 saveMap<std::string, float>(doc, mFloatMap, "float");
61
62 doc.save_file(path.c_str());
63}
64
65void Settings::loadFile()
66{

Callers 1

applyStatesMethod · 0.80

Calls 2

getHomePathFunction · 0.85
save_fileMethod · 0.80

Tested by

no test coverage detected