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