diff options
author | Jamie Mansfield <jmansfield@cadixdev.org> | 2020-08-24 23:13:43 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-02-07 23:30:24 +0100 |
commit | ab19b863417d7cfca7ff1a5121c2f41ed0a722d9 (patch) | |
tree | 9e6f2749f8be48315670bb222b2b3d83be799d80 /api/logic/minecraft | |
parent | 5e980ceef20ea7087b3c04fb7e7691f29363fa3b (diff) | |
download | PrismLauncher-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.h | 6 |
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); |