summaryrefslogtreecommitdiffstats
path: root/logic/OneSixInstance.cpp
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-02-01 14:52:21 +0100
committerJan Dalheimer <jan@dalheimer.de>2014-02-01 14:52:21 +0100
commit4a9e213238234b03fdd994143726a3f75290fc26 (patch)
treeaf1063eeb8cc0e82c09295e52997d88d8b45a581 /logic/OneSixInstance.cpp
parent556d8f0ec16e5030cfbfac9dc0fc2c796e829dcb (diff)
downloadMultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar
MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.gz
MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.lz
MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.tar.xz
MultiMC-4a9e213238234b03fdd994143726a3f75290fc26.zip
Change the OneSix library view. It now shows a list of patches.
Diffstat (limited to 'logic/OneSixInstance.cpp')
-rw-r--r--logic/OneSixInstance.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/logic/OneSixInstance.cpp b/logic/OneSixInstance.cpp
index 19d5e112..88c40316 100644
--- a/logic/OneSixInstance.cpp
+++ b/logic/OneSixInstance.cpp
@@ -319,8 +319,9 @@ bool OneSixInstance::shouldUpdate() const
bool OneSixInstance::versionIsCustom()
{
QDir patches(PathCombine(instanceRoot(), "patches/"));
- return QFile::exists(PathCombine(instanceRoot(), "custom.json"))
- || (patches.exists() && patches.count() >= 0);
+ return (patches.exists() && patches.count() >= 0)
+ || QFile::exists(PathCombine(instanceRoot(), "custom.json"))
+ || QFile::exists(PathCombine(instanceRoot(), "user.json"));
}
QString OneSixInstance::currentVersionId() const