diff options
author | nea <nea@nea.moe> | 2023-02-28 01:19:40 +0100 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-02-28 01:19:40 +0100 |
commit | 06a49d9bc61fc05d6797ddd0fdebe5a7612daea0 (patch) | |
tree | 2002222dfb0e313165b154369497f14aa8e9f72e | |
parent | 9dd038e49ae1f991a0afe5c0835fce29743f8962 (diff) | |
download | libautoupdate-06a49d9bc61fc05d6797ddd0fdebe5a7612daea0.tar.gz libautoupdate-06a49d9bc61fc05d6797ddd0fdebe5a7612daea0.tar.bz2 libautoupdate-06a49d9bc61fc05d6797ddd0fdebe5a7612daea0.zip |
Add executePreparedUpdate
-rw-r--r-- | src/main/java/moe/nea/libautoupdate/PotentialUpdate.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/libautoupdate/PotentialUpdate.java b/src/main/java/moe/nea/libautoupdate/PotentialUpdate.java index 33d4026..2825c0d 100644 --- a/src/main/java/moe/nea/libautoupdate/PotentialUpdate.java +++ b/src/main/java/moe/nea/libautoupdate/PotentialUpdate.java @@ -107,6 +107,14 @@ public class PotentialUpdate { */ public void executeUpdate() throws IOException { prepareUpdate(); + executePreparedUpdate(); + } + + /** + * Execute an already prepared update. + * Identical to {@link #executeUpdate()} if {@link #prepareUpdate()} was called beforehand. + */ + public void executePreparedUpdate() { ExitHookInvoker.setExitHook( getContext().getIdentifier(), getUpdateUUID(), |