diff options
Diffstat (limited to 'libinstance/src/instance.cpp')
-rw-r--r-- | libinstance/src/instance.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libinstance/src/instance.cpp b/libinstance/src/instance.cpp index b505ec86..ac0eca24 100644 --- a/libinstance/src/instance.cpp +++ b/libinstance/src/instance.cpp @@ -28,7 +28,7 @@ Instance::Instance(const QString &rootDir, QObject *parent) : QString Instance::id() const { - return QFileInfo(rootDir()).baseName(); + return QFileInfo(rootDir()).fileName(); } QString Instance::rootDir() const @@ -50,13 +50,9 @@ QString Instance::minecraftDir() const QFileInfo dotMCDir(PathCombine(rootDir(), ".minecraft")); if (dotMCDir.exists() && !mcDir.exists()) - { - return dotMCDir.path(); - } + return dotMCDir.filePath(); else - { - return mcDir.path(); - } + return mcDir.filePath(); } QString Instance::binDir() const |