| 50 | } |
| 51 | |
| 52 | void 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 | |
| 65 | void Settings::loadFile() |
| 66 | { |
no test coverage detected