From 06964ce1e3ee82fa6041a9b27245146c0f5812af Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Wed, 10 Jan 2024 20:58:06 -0500 Subject: [PATCH] Fix HTML5 build issue --- source/funkin/ui/debug/charting/ChartEditorState.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 1773a84fe..851e3b2fa 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -5333,6 +5333,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState if (displayAutosavePopup) { displayAutosavePopup = false; + #if sys Toolkit.callLater(() -> { var absoluteBackupsPath:String = Path.join([Sys.getCwd(), ChartEditorImportExportHandler.BACKUPS_PATH]); this.infoWithActions('Auto-Save', 'Chart auto-saved to ${absoluteBackupsPath}.', [ @@ -5342,6 +5343,9 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState } ]); }); + #else + // TODO: No auto-save on HTML5? + #end } moveSongToScrollPosition();