re-add the runupdate call

This commit is contained in:
yugecin 2017-01-21 00:39:56 +01:00
parent 04de1d024f
commit aceebb95ca

View File

@ -17,6 +17,7 @@
*/
package yugecin.opsudance.core;
import itdelatrisu.opsu.downloads.Updater;
import yugecin.opsudance.OpsuDance;
import yugecin.opsudance.core.inject.OpsuDanceInjector;
@ -27,6 +28,10 @@ public class Entrypoint {
public static void main(String[] args) {
sout("launched");
(new OpsuDanceInjector()).provide(OpsuDance.class).start(args);
if (Updater.get().getStatus() == Updater.Status.UPDATE_FINAL) {
Updater.get().runUpdate();
}
}
public static long runtime() {