aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/VersionFile.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-05 19:04:53 +0300
commit91eb30f03795921b48360b79bdb739dcd0f10f17 (patch)
tree1a2fccbbbf4751cf2cf6f6418cb525dcee5f2acd /launcher/minecraft/VersionFile.h
parenta3ffa6455021b69bd1940b65fefb3b6177c96730 (diff)
parentae793f6cf11658c9abc5111e82d5ba7b3e6af127 (diff)
downloadPrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.gz
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.tar.bz2
PrismLauncher-91eb30f03795921b48360b79bdb739dcd0f10f17.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into pack_changelog
Diffstat (limited to 'launcher/minecraft/VersionFile.h')
-rw-r--r--launcher/minecraft/VersionFile.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/launcher/minecraft/VersionFile.h b/launcher/minecraft/VersionFile.h
index 8e9dd167..280e35ee 100644
--- a/launcher/minecraft/VersionFile.h
+++ b/launcher/minecraft/VersionFile.h
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-only
/*
- * PolyMC - Minecraft Launcher
+ * Prism Launcher - Minecraft Launcher
* Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net>
*
* This program is free software: you can redistribute it and/or modify
@@ -35,17 +35,17 @@
#pragma once
-#include <QString>
-#include <QStringList>
#include <QDateTime>
#include <QSet>
+#include <QString>
+#include <QStringList>
+#include <meta/JsonFormat.h>
#include <memory>
-#include "minecraft/Rule.h"
-#include "ProblemProvider.h"
-#include "Library.h"
#include "Agent.h"
-#include <meta/JsonFormat.h>
+#include "Library.h"
+#include "ProblemProvider.h"
+#include "minecraft/Rule.h"
class PackProfile;
class VersionFile;
@@ -54,14 +54,14 @@ struct MojangDownloadInfo;
struct MojangAssetIndexInfo;
using VersionFilePtr = std::shared_ptr<VersionFile>;
-class VersionFile : public ProblemContainer
-{
+class VersionFile : public ProblemContainer {
friend class MojangVersionFormat;
friend class OneSixVersionFormat;
-public: /* methods */
- void applyTo(LaunchProfile* profile, const RuntimeContext & runtimeContext);
-public: /* data */
+ public: /* methods */
+ void applyTo(LaunchProfile* profile, const RuntimeContext& runtimeContext);
+
+ public: /* data */
/// Prism Launcher: order hint for this version file if no explicit order is set
int order = 0;
@@ -149,11 +149,10 @@ public: /* data */
/// is volatile -- may be removed as soon as it is no longer needed by something else
bool m_volatile = false;
-public:
+ public:
// Mojang: DEPRECATED list of 'downloads' - client jar, server jar, windows server exe, maybe more.
- QMap <QString, std::shared_ptr<MojangDownloadInfo>> mojangDownloads;
+ QMap<QString, std::shared_ptr<MojangDownloadInfo>> mojangDownloads;
// Mojang: extended asset index download information
std::shared_ptr<MojangAssetIndexInfo> mojangAssetIndex;
};
-