From 28b779f0f8c1de7237b4f8dcc24b6b9fc607dfd1 Mon Sep 17 00:00:00 2001 From: Leandro Quiroga <30802640+leaqui@users.noreply.github.com> Date: Fri, 14 Dec 2018 16:22:39 -0300 Subject: [PATCH 1/2] Fix issue #176 install(Resources) method created and called from update() method, below calling download(). --- .../com/threerings/getdown/launcher/Getdown.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java index 1bdb32f..8f14717 100644 --- a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java +++ b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java @@ -676,6 +676,9 @@ public abstract class Getdown extends Thread // download the patch files... setStep(Step.DOWNLOAD); download(list); + + // rename the patch files... + install(list); // and apply them... setStep(Step.PATCH); @@ -710,6 +713,17 @@ public abstract class Getdown extends Thread readConfig(false); } + /** + * Installs resources + */ + private void install (List resources) + throws IOException + { + for (Resource rsrc : resources) { + rsrc.install(); + } + } + /** * Called if the application is determined to require resource downloads. */ From 8a00ff60d8ac13fb25ca6f3a9002177e445a72d7 Mon Sep 17 00:00:00 2001 From: Leandro Quiroga <30802640+leaqui@users.noreply.github.com> Date: Fri, 14 Dec 2018 16:35:43 -0300 Subject: [PATCH 2/2] true arg passed to install() --- .../src/main/java/com/threerings/getdown/launcher/Getdown.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java index 8f14717..1b04122 100644 --- a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java +++ b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java @@ -720,7 +720,7 @@ public abstract class Getdown extends Thread throws IOException { for (Resource rsrc : resources) { - rsrc.install(); + rsrc.install(true); } }