NOISSUE prefer to use '.minecraft' instead of 'minecraft' folder

This commit is contained in:
Petr Mrázek 2017-09-20 23:58:39 +02:00
parent c707042dd7
commit e9434fce3d
2 changed files with 6 additions and 6 deletions

View File

@ -172,10 +172,10 @@ QString MinecraftInstance::minecraftRoot() const
QFileInfo mcDir(FS::PathCombine(instanceRoot(), "minecraft")); QFileInfo mcDir(FS::PathCombine(instanceRoot(), "minecraft"));
QFileInfo dotMCDir(FS::PathCombine(instanceRoot(), ".minecraft")); QFileInfo dotMCDir(FS::PathCombine(instanceRoot(), ".minecraft"));
if (dotMCDir.exists() && !mcDir.exists()) if (mcDir.exists() && !dotMCDir.exists())
return dotMCDir.filePath();
else
return mcDir.filePath(); return mcDir.filePath();
else
return dotMCDir.filePath();
} }
QString MinecraftInstance::binRoot() const QString MinecraftInstance::binRoot() const

View File

@ -177,10 +177,10 @@ QString LegacyInstance::minecraftRoot() const
QFileInfo mcDir(FS::PathCombine(instanceRoot(), "minecraft")); QFileInfo mcDir(FS::PathCombine(instanceRoot(), "minecraft"));
QFileInfo dotMCDir(FS::PathCombine(instanceRoot(), ".minecraft")); QFileInfo dotMCDir(FS::PathCombine(instanceRoot(), ".minecraft"));
if (dotMCDir.exists() && !mcDir.exists()) if (mcDir.exists() && !dotMCDir.exists())
return dotMCDir.filePath();
else
return mcDir.filePath(); return mcDir.filePath();
else
return dotMCDir.filePath();
} }
QString LegacyInstance::binRoot() const QString LegacyInstance::binRoot() const