From 814d5d3315ef82e9eeb7adcf71b1105c0b3afcdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 11 Aug 2014 02:17:48 +0200 Subject: Properly detect if the instance is vanilla and don't treat it as custom. --- logic/minecraft/VersionFile.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'logic/minecraft/VersionFile.h') diff --git a/logic/minecraft/VersionFile.h b/logic/minecraft/VersionFile.h index 9a6c5d3c..96856891 100644 --- a/logic/minecraft/VersionFile.h +++ b/logic/minecraft/VersionFile.h @@ -53,9 +53,18 @@ public: /* methods */ { return filename; } + virtual bool isCustom() + { + return !isVanilla; + }; + void setVanilla (bool state) + { + isVanilla = state; + } public: /* data */ int order = 0; + bool isVanilla = false; QString name; QString fileId; QString version; -- cgit v1.2.3