The .emulationstation directory is now ignored if there is already an ES-DE directory

This commit is contained in:
Leon Styhre 2023-12-16 12:37:09 +01:00
parent 361bf832e1
commit 946a783100

View file

@ -319,7 +319,11 @@ namespace Utils
return getHomePathSTD();
#else
if (FileSystemVariables::sAppDataDirectory.empty()) {
if (Utils::FileSystem::existsSTD(getHomePathSTD().append(".emulationstation"))) {
if (Utils::FileSystem::existsSTD(getHomePathSTD().append("ES-DE"))) {
FileSystemVariables::sAppDataDirectory = getHomePathSTD().append("ES-DE");
}
else if (Utils::FileSystem::existsSTD(
getHomePathSTD().append(".emulationstation"))) {
FileSystemVariables::sAppDataDirectory =
getHomePathSTD().append(".emulationstation");
}