From 315ba430e008d051fb39b16299b7d6b8c42d8757 Mon Sep 17 00:00:00 2001 From: m500020 Date: Thu, 10 Mar 2022 13:48:20 +0100 Subject: [PATCH] Moved resource cleanup to install for support of unversioned-mode --- .../com/threerings/getdown/launcher/Getdown.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 59f084d..119ad35 100644 --- a/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java +++ b/launcher/src/main/java/com/threerings/getdown/launcher/Getdown.java @@ -138,6 +138,12 @@ public abstract class Getdown _toInstallResources.clear(); _readyToInstall = false; log.info("Install completed."); + + // do resource cleanup + final List cleanupPatterns = _app.cleanupPatterns(); + if (!cleanupPatterns.isEmpty()) { + cleanupResources(cleanupPatterns); + } } else { log.info("Nothing to install."); } @@ -344,12 +350,6 @@ public abstract class Getdown log.info("Application requires update."); update(); - // do resource cleanup - final List cleanupPatterns = _app.cleanupPatterns(); - if (!cleanupPatterns.isEmpty()) { - cleanupResources(cleanupPatterns); - } - // loop back again and reverify the metadata continue; }