summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/ProfilePatch.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-03-19 03:06:32 +0100
committerPetr Mrázek <peterix@gmail.com>2016-03-26 17:05:27 +0100
commitec6204e447fd9e88b4cf2a628ed220f93f271fd0 (patch)
tree498553279ed6966d188c486ebc11205518f09a0c /logic/minecraft/ProfilePatch.h
parent9e3534f2f6d60dc4c1b14ebaa748c0cb26638a4c (diff)
downloadMultiMC-ec6204e447fd9e88b4cf2a628ed220f93f271fd0.tar
MultiMC-ec6204e447fd9e88b4cf2a628ed220f93f271fd0.tar.gz
MultiMC-ec6204e447fd9e88b4cf2a628ed220f93f271fd0.tar.lz
MultiMC-ec6204e447fd9e88b4cf2a628ed220f93f271fd0.tar.xz
MultiMC-ec6204e447fd9e88b4cf2a628ed220f93f271fd0.zip
NOISSUE share logic for new attributes between mojang and onesix format
Diffstat (limited to 'logic/minecraft/ProfilePatch.h')
-rw-r--r--logic/minecraft/ProfilePatch.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/logic/minecraft/ProfilePatch.h b/logic/minecraft/ProfilePatch.h
index 56bc58a7..fa2f0a0f 100644
--- a/logic/minecraft/ProfilePatch.h
+++ b/logic/minecraft/ProfilePatch.h
@@ -3,6 +3,7 @@
#include <memory>
#include <QList>
#include <QJsonDocument>
+#include <QDateTime>
#include "JarMod.h"
class MinecraftProfile;
@@ -43,7 +44,7 @@ private:
QString m_description;
};
-class ProfilePatch
+class ProfilePatch : public std::enable_shared_from_this<ProfilePatch>
{
public:
virtual ~ProfilePatch(){};
@@ -73,6 +74,8 @@ public:
virtual VersionSource getVersionSource() = 0;
+ virtual std::shared_ptr<class VersionFile> getVersionFile() = 0;
+
virtual const QList<PatchProblem>& getProblems()
{
return m_problems;