From 3198482a3a1ef47fca829735f655452270dd3fda Mon Sep 17 00:00:00 2001 From: Hoshino <168133165+yophlox@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:12:00 -0400 Subject: [PATCH] another AutoUpdater patch --- source/Utils.hx | 2 +- source/states/MainMenuState.hx | 2 +- source/util/AutoUpdater.hx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Utils.hx b/source/Utils.hx index dc13d9e..edcbe7a 100644 --- a/source/Utils.hx +++ b/source/Utils.hx @@ -4,7 +4,7 @@ import flixel.math.FlxPoint; class Utils { // MAIN SWAGGER SHITS! - public static var VERSION:String = " v1.1"; + public static final VERSION:String = "1.1"; static public var soundExt:String = ".mp3"; public static final discordRpc:String = "1139936005785407578"; diff --git a/source/states/MainMenuState.hx b/source/states/MainMenuState.hx index 1762e5d..26b555e 100644 --- a/source/states/MainMenuState.hx +++ b/source/states/MainMenuState.hx @@ -70,7 +70,7 @@ class MainMenuState extends SwagState { devcred.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, LEFT, FlxTextBorderStyle.SHADOW, FlxColor.BLACK); add(devcred); - var versionShit:FlxText = new FlxText(0, FlxG.height - 18, FlxG.width - 5, "Moon4K" + Utils.VERSION, 12); + var versionShit:FlxText = new FlxText(0, FlxG.height - 18, FlxG.width - 5, "Moon4K v" + Utils.VERSION, 12); versionShit.scrollFactor.set(); versionShit.setFormat("VCR OSD Mono", 16, FlxColor.WHITE, RIGHT, FlxTextBorderStyle.SHADOW, FlxColor.BLACK); add(versionShit); diff --git a/source/util/AutoUpdater.hx b/source/util/AutoUpdater.hx index 47c3e8d..7f154ba 100644 --- a/source/util/AutoUpdater.hx +++ b/source/util/AutoUpdater.hx @@ -49,7 +49,7 @@ class AutoUpdater "https://github.com/yophlox/Moon4K/releases/latest/download/Moon4K-Linux-Release.zip" #end ; // Replace with your repo and zip file - public static inline var CURRENT_VERSION = "1.0"; // Replace with your version + public static var CURRENT_VERSION = Utils.VERSION; public static var latestVersion:String = "";