summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/VersionFinal.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/VersionFinal.h')
-rw-r--r--logic/minecraft/VersionFinal.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/logic/minecraft/VersionFinal.h b/logic/minecraft/VersionFinal.h
index 7be981ed..83a88263 100644
--- a/logic/minecraft/VersionFinal.h
+++ b/logic/minecraft/VersionFinal.h
@@ -83,16 +83,21 @@ public:
static std::shared_ptr<VersionFinal> fromJson(const QJsonObject &obj);
private:
- bool preremove(VersionFilePtr);
+ bool preremove(VersionPatchPtr patch);
// data members
public:
/// the ID - determines which jar to use! ACTUALLY IMPORTANT!
QString id;
- /// Last updated time - as a string
- QString time;
- /// Release time - as a string
- QString versionReleaseTime;
+
+ /// the time this version was actually released by Mojang, as string and as QDateTime
+ QString m_releaseTimeString;
+ QDateTime m_releaseTime;
+
+ /// the time this version was last updated by Mojang, as string and as QDateTime
+ QString m_updateTimeString;
+ QDateTime m_updateTime;
+
/// Release type - "release" or "snapshot"
QString type;
/// Assets type - "legacy" or a version ID
@@ -164,8 +169,9 @@ public:
*/
// QList<Rule> rules;
- QList<VersionFilePtr> versionFiles;
- VersionFilePtr versionPatch(const QString &id);
+ QList<VersionPatchPtr> VersionPatches;
+ VersionPatchPtr versionPatch(const QString &id);
+ VersionPatchPtr versionPatch(int index);
private:
OneSixInstance *m_instance;