summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/MinecraftVersion.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-01-27 22:31:07 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-02 00:14:06 +0200
commit791221e923586bb717396ecf18bd13e57034df99 (patch)
tree9f608af07375b38626c8964671620477158341ba /logic/minecraft/MinecraftVersion.h
parent593111b14463e9d5d08256061b981b5ab1cfb710 (diff)
downloadMultiMC-791221e923586bb717396ecf18bd13e57034df99.tar
MultiMC-791221e923586bb717396ecf18bd13e57034df99.tar.gz
MultiMC-791221e923586bb717396ecf18bd13e57034df99.tar.lz
MultiMC-791221e923586bb717396ecf18bd13e57034df99.tar.xz
MultiMC-791221e923586bb717396ecf18bd13e57034df99.zip
NOISSUE Refactors and moving of things
Diffstat (limited to 'logic/minecraft/MinecraftVersion.h')
-rw-r--r--logic/minecraft/MinecraftVersion.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/logic/minecraft/MinecraftVersion.h b/logic/minecraft/MinecraftVersion.h
index 84d0773e..fbb209f2 100644
--- a/logic/minecraft/MinecraftVersion.h
+++ b/logic/minecraft/MinecraftVersion.h
@@ -20,15 +20,15 @@
#include <QDateTime>
#include "logic/BaseVersion.h"
-#include "VersionPatch.h"
+#include "ProfilePatch.h"
#include "VersionFile.h"
#include "VersionSource.h"
-class InstanceVersion;
+class MinecraftProfile;
class MinecraftVersion;
typedef std::shared_ptr<MinecraftVersion> MinecraftVersionPtr;
-class MinecraftVersion : public BaseVersion, public VersionPatch
+class MinecraftVersion : public BaseVersion, public ProfilePatch
{
public: /* methods */
bool usesLegacyLauncher();
@@ -37,9 +37,9 @@ public: /* methods */
virtual QString typeString() const override;
virtual bool hasJarMods() override;
virtual bool isMinecraftVersion() override;
- virtual void applyTo(InstanceVersion *version) override;
- virtual int getOrder();
- virtual void setOrder(int order);
+ virtual void applyTo(MinecraftProfile *version) override;
+ virtual int getOrder() override;
+ virtual void setOrder(int order) override;
virtual QList<JarmodPtr> getJarMods() override;
virtual QString getPatchID() override;
virtual QString getPatchVersion() override;
@@ -47,10 +47,12 @@ public: /* methods */
virtual QString getPatchFilename() override;
bool needsUpdate();
bool hasUpdate();
- virtual bool isCustom();
+ virtual bool isCustom() override;
+
+ VersionFilePtr getVersionFile();
private: /* methods */
- void applyFileTo(InstanceVersion *version);
+ void applyFileTo(MinecraftProfile *version);
public: /* data */
/// The URL that this version will be downloaded from. maybe.
@@ -92,7 +94,7 @@ public: /* data */
/// order of this file... default = -2
int order = -2;
-
+
/// an update available from Mojang
MinecraftVersionPtr upstreamUpdate;
};