From 51bea6b7d3a27f70c83d02686074e443ddc9d273 Mon Sep 17 00:00:00 2001 From: JordanSantiagoYT Date: Mon, 11 Nov 2024 22:20:28 -0500 Subject: [PATCH 1/2] no more time bug after update finishes installing lmao --- source/UpdateState.hx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/UpdateState.hx b/source/UpdateState.hx index 5acb2ab44c4..43f1cf95ac1 100644 --- a/source/UpdateState.hx +++ b/source/UpdateState.hx @@ -153,6 +153,7 @@ class UpdateState extends MusicBeatState progressText.text = FlxMath.roundDecimal(entire_progress, 2) + "%"; download_info.text = currentFile; download_info.x = (progBar_bg.x + progBar_bg.width) - download_info.width; + default: } } @@ -309,11 +310,19 @@ class UpdateState extends MusicBeatState File.saveBytes(path + "JS Engine v" + TitleState.updateVersion + ".zip", fileBytes); text.text = "Unpacking update file..."; text.screenCenter(X); - // Uncompress.run(File.getBytes(path + "JS Engine v" + TitleState.updateVersion + ".zip")) + JSEZip.unzip(path + "JS Engine v" + TitleState.updateVersion + ".zip", "./update/raw/"); text.text = "Update has finished! The update will be installed shortly.."; text.screenCenter(X); + zip.removeEventListener(ProgressEvent.PROGRESS, onDownloadProgress); + zip.removeEventListener(openfl.events.Event.COMPLETE, onDownloadComplete); + + progressText.text = 'Complete'; + progressText.screenCenter(X); + + currentTask = 'complete'; + FlxG.sound.play(Paths.sound('confirmMenu')); new FlxTimer().start(3, function(e:FlxTimer) From 1b379511cff7d103881b847d0b4f339b280cd97e Mon Sep 17 00:00:00 2001 From: JordanSantiagoYT Date: Mon, 11 Nov 2024 23:20:00 -0500 Subject: [PATCH 2/2] weekend 1 wasnt added in fnf 0.2.8 lol --- Project.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.xml b/Project.xml index 52ecda4f820..656d392a4e7 100644 --- a/Project.xml +++ b/Project.xml @@ -2,7 +2,7 @@ - +