diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-20 23:58:39 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-20 23:58:39 +0200 |
commit | e9434fce3d3738bbc0b424b81707cc562a885cea (patch) | |
tree | 389c1e93d956fcbf2bd6dc30cdb7ef4484bc9f78 | |
parent | c707042dd7cdfb14966f13110f0bb2f4ec1f887b (diff) | |
download | MultiMC-e9434fce3d3738bbc0b424b81707cc562a885cea.tar MultiMC-e9434fce3d3738bbc0b424b81707cc562a885cea.tar.gz MultiMC-e9434fce3d3738bbc0b424b81707cc562a885cea.tar.lz MultiMC-e9434fce3d3738bbc0b424b81707cc562a885cea.tar.xz MultiMC-e9434fce3d3738bbc0b424b81707cc562a885cea.zip |
NOISSUE prefer to use '.minecraft' instead of 'minecraft' folder
-rw-r--r-- | api/logic/minecraft/MinecraftInstance.cpp | 6 | ||||
-rw-r--r-- | api/logic/minecraft/legacy/LegacyInstance.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/api/logic/minecraft/MinecraftInstance.cpp b/api/logic/minecraft/MinecraftInstance.cpp index df51ed2c..224e5da9 100644 --- a/api/logic/minecraft/MinecraftInstance.cpp +++ b/api/logic/minecraft/MinecraftInstance.cpp @@ -172,10 +172,10 @@ QString MinecraftInstance::minecraftRoot() const QFileInfo mcDir(FS::PathCombine(instanceRoot(), "minecraft")); QFileInfo dotMCDir(FS::PathCombine(instanceRoot(), ".minecraft")); - if (dotMCDir.exists() && !mcDir.exists()) - return dotMCDir.filePath(); - else + if (mcDir.exists() && !dotMCDir.exists()) return mcDir.filePath(); + else + return dotMCDir.filePath(); } QString MinecraftInstance::binRoot() const diff --git a/api/logic/minecraft/legacy/LegacyInstance.cpp b/api/logic/minecraft/legacy/LegacyInstance.cpp index 95cc4689..21acf675 100644 --- a/api/logic/minecraft/legacy/LegacyInstance.cpp +++ b/api/logic/minecraft/legacy/LegacyInstance.cpp @@ -177,10 +177,10 @@ QString LegacyInstance::minecraftRoot() const QFileInfo mcDir(FS::PathCombine(instanceRoot(), "minecraft")); QFileInfo dotMCDir(FS::PathCombine(instanceRoot(), ".minecraft")); - if (dotMCDir.exists() && !mcDir.exists()) - return dotMCDir.filePath(); - else + if (mcDir.exists() && !dotMCDir.exists()) return mcDir.filePath(); + else + return dotMCDir.filePath(); } QString LegacyInstance::binRoot() const |