diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-05-31 19:59:07 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-05-31 20:00:15 +0200 |
commit | 99f248ecd40d7ebe79723b8a27ac188ff5c8d13b (patch) | |
tree | 118ecccd5a6930eccfbd6d4465cb2a0b75a6321e /logic/minecraft/MinecraftProfile.h | |
parent | b9e06b5da0bdc3644bac37bfcc45e32d0bcc37a5 (diff) | |
download | MultiMC-99f248ecd40d7ebe79723b8a27ac188ff5c8d13b.tar MultiMC-99f248ecd40d7ebe79723b8a27ac188ff5c8d13b.tar.gz MultiMC-99f248ecd40d7ebe79723b8a27ac188ff5c8d13b.tar.lz MultiMC-99f248ecd40d7ebe79723b8a27ac188ff5c8d13b.tar.xz MultiMC-99f248ecd40d7ebe79723b8a27ac188ff5c8d13b.zip |
GH-1015 catch exceptions when doing profile reapply
This is a temporary solution.
Diffstat (limited to 'logic/minecraft/MinecraftProfile.h')
-rw-r--r-- | logic/minecraft/MinecraftProfile.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/logic/minecraft/MinecraftProfile.h b/logic/minecraft/MinecraftProfile.h index dba7d744..d97f7bb8 100644 --- a/logic/minecraft/MinecraftProfile.h +++ b/logic/minecraft/MinecraftProfile.h @@ -82,9 +82,12 @@ public: /// clear the profile void clear(); - /// apply the patches + /// apply the patches. Throws all sorts of errors. void reapply(); + /// apply the patches. Catches all the errors and returns true/false for success/failure + bool reapplySafe(); + /// do a finalization step (should always be done after applying all patches to profile) void finalize(); |