aboutsummaryrefslogtreecommitdiff
path: root/api/logic/minecraft
diff options
context:
space:
mode:
authorJamie Mansfield <jmansfield@cadixdev.org>2020-08-24 23:13:43 +0100
committerPetr Mrázek <peterix@gmail.com>2021-02-07 23:30:24 +0100
commitab19b863417d7cfca7ff1a5121c2f41ed0a722d9 (patch)
tree9e6f2749f8be48315670bb222b2b3d83be799d80 /api/logic/minecraft
parent5e980ceef20ea7087b3c04fb7e7691f29363fa3b (diff)
downloadPrismLauncher-ab19b863417d7cfca7ff1a5121c2f41ed0a722d9.tar.gz
PrismLauncher-ab19b863417d7cfca7ff1a5121c2f41ed0a722d9.tar.bz2
PrismLauncher-ab19b863417d7cfca7ff1a5121c2f41ed0a722d9.zip
GH-405 ATLauncher Support
Diffstat (limited to 'api/logic/minecraft')
-rw-r--r--api/logic/minecraft/PackProfile.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/api/logic/minecraft/PackProfile.h b/api/logic/minecraft/PackProfile.h
index 6a2a21ec..e55e6a58 100644
--- a/api/logic/minecraft/PackProfile.h
+++ b/api/logic/minecraft/PackProfile.h
@@ -114,6 +114,10 @@ public:
/// get the profile component by index
Component * getComponent(int index);
+ /// Add the component to the internal list of patches
+ // todo(merged): is this the best approach
+ void appendComponent(ComponentPtr component);
+
private:
void scheduleSave();
bool saveIsScheduled() const;
@@ -121,8 +125,6 @@ private:
/// apply the component patches. Catches all the errors and returns true/false for success/failure
void invalidateLaunchProfile();
- /// Add the component to the internal list of patches
- void appendComponent(ComponentPtr component);
/// insert component so that its index is ideally the specified one (returns real index)
void insertComponent(size_t index, ComponentPtr component);