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

Method writeConfig

src/InputManager.cpp:431–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void InputManager::writeConfig()
432{
433 if(!mJoysticks)
434 {
435 LOG(LogError) << "ERROR - cannot write config without being initialized!";
436 return;
437 }
438
439 std::string path = getConfigPath();
440
441 pugi::xml_document doc;
442
443 pugi::xml_node root = doc.append_child("inputList");
444
445 mKeyboardInputConfig->writeToXML(root);
446 for(int i = 0; i < mNumJoysticks; i++)
447 {
448 mInputConfigs[i]->writeToXML(root);
449 }
450
451 doc.save_file(path.c_str());
452}
453
454std::string InputManager::getConfigPath()
455{

Callers 1

inputMethod · 0.80

Calls 3

append_childMethod · 0.80
writeToXMLMethod · 0.80
save_fileMethod · 0.80

Tested by

no test coverage detected