Removed the copying of es_settings.cfg to es_settings.xml on startup.

This commit is contained in:
Leon Styhre 2021-11-06 21:43:32 +01:00
parent c673f06eb0
commit b4492abccd

View file

@ -358,16 +358,9 @@ void Settings::saveFile()
void Settings::loadFile()
{
// Prior to ES-DE v1.1, the configuration file had the .cfg suffix instead of .xml
const std::string legacyConfigFile =
Utils::FileSystem::getHomePath() + "/.emulationstation/es_settings.cfg";
const std::string configFile =
Utils::FileSystem::getHomePath() + "/.emulationstation/es_settings.xml";
if (Utils::FileSystem::exists(legacyConfigFile) && !Utils::FileSystem::exists(configFile))
Utils::FileSystem::copyFile(legacyConfigFile, configFile, false);
if (!Utils::FileSystem::exists(configFile))
return;