diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-11-04 22:55:25 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-11-17 15:44:13 +0100 |
commit | 17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96 (patch) | |
tree | 47330451b2a147ee54b2e63c5a1e614e4f88268b /api/logic/minecraft/ProfilePatch.cpp | |
parent | 3470158943acb9fc4439ea255fe3ea0fbc7dbc85 (diff) | |
download | MultiMC-17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96.tar MultiMC-17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96.tar.gz MultiMC-17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96.tar.lz MultiMC-17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96.tar.xz MultiMC-17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96.zip |
NOISSUE split out the LaunchProfile out of the ComponentList
Diffstat (limited to 'api/logic/minecraft/ProfilePatch.cpp')
-rw-r--r-- | api/logic/minecraft/ProfilePatch.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/api/logic/minecraft/ProfilePatch.cpp b/api/logic/minecraft/ProfilePatch.cpp index b8b5c240..b7a5a37a 100644 --- a/api/logic/minecraft/ProfilePatch.cpp +++ b/api/logic/minecraft/ProfilePatch.cpp @@ -22,7 +22,7 @@ std::shared_ptr<Meta::Version> ProfilePatch::getMeta() return m_metaVersion; } -void ProfilePatch::applyTo(ComponentList* profile) +void ProfilePatch::applyTo(LaunchProfile* profile) { auto vfile = getVersionFile(); if(vfile) @@ -35,7 +35,7 @@ void ProfilePatch::applyTo(ComponentList* profile) } } -std::shared_ptr<class VersionFile> ProfilePatch::getVersionFile() +std::shared_ptr<class VersionFile> ProfilePatch::getVersionFile() const { if(m_metaVersion) { @@ -51,7 +51,7 @@ std::shared_ptr<class VersionFile> ProfilePatch::getVersionFile() } } -std::shared_ptr<class Meta::VersionList> ProfilePatch::getVersionList() +std::shared_ptr<class Meta::VersionList> ProfilePatch::getVersionList() const { if(m_metaVersion) { @@ -167,7 +167,7 @@ void ProfilePatch::setMovable (bool state) m_isMovable = state; } -ProblemSeverity ProfilePatch::getProblemSeverity() +ProblemSeverity ProfilePatch::getProblemSeverity() const { auto file = getVersionFile(); if(file) @@ -177,7 +177,7 @@ ProblemSeverity ProfilePatch::getProblemSeverity() return ProblemSeverity::Error; } -const QList<PatchProblem> ProfilePatch::getProblems() +const QList<PatchProblem> ProfilePatch::getProblems() const { auto file = getVersionFile(); if(file) |