From ae7a945f8183b54935eb8f0d83f5462019594fd9 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Fri, 16 Dec 2022 19:48:30 +0100 Subject: [PATCH] now it compiles --- source/funkin/updating/{Updater.hx => AsyncUpdater.hx} | 0 source/funkin/updating/UpdateScreen.hx | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename source/funkin/updating/{Updater.hx => AsyncUpdater.hx} (100%) diff --git a/source/funkin/updating/Updater.hx b/source/funkin/updating/AsyncUpdater.hx similarity index 100% rename from source/funkin/updating/Updater.hx rename to source/funkin/updating/AsyncUpdater.hx diff --git a/source/funkin/updating/UpdateScreen.hx b/source/funkin/updating/UpdateScreen.hx index 9e3a2112..5e9d49fc 100644 --- a/source/funkin/updating/UpdateScreen.hx +++ b/source/funkin/updating/UpdateScreen.hx @@ -3,15 +3,15 @@ package funkin.updating; import funkin.updating.UpdateUtil.UpdateCheckCallback; class UpdateScreen extends MusicBeatState { - public var updater:Updater; + public var updater:AsyncUpdater; public function new(check:UpdateCheckCallback) { super(false); - updater = new AsyncUpdater(check); + updater = new AsyncUpdater(check.updates); } public override function create() { super.create(); - Main.execAsync(installUpdates); + updater.execute(); } } \ No newline at end of file