diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index d53aa09d7..81757bcae 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -562,7 +562,12 @@ class PlayState extends MusicBeatSubState // Prepare the Conductor. Conductor.forceBPM(null); - Conductor.instrumentalOffset = currentChart.offsets.getInstrumentalOffset(); + + if (currentChart.offsets != null) + { + Conductor.instrumentalOffset = currentChart.offsets.getInstrumentalOffset(); + } + Conductor.mapTimeChanges(currentChart.timeChanges); Conductor.update((Conductor.beatLengthMs * -5) + startTimestamp); diff --git a/source/funkin/ui/debug/charting/dialogs/ChartEditorUploadChartDialog.hx b/source/funkin/ui/debug/charting/dialogs/ChartEditorUploadChartDialog.hx index aef5e9feb..49d5593b0 100644 --- a/source/funkin/ui/debug/charting/dialogs/ChartEditorUploadChartDialog.hx +++ b/source/funkin/ui/debug/charting/dialogs/ChartEditorUploadChartDialog.hx @@ -92,7 +92,12 @@ class ChartEditorUploadChartDialog extends ChartEditorBaseDialog if (this.locked) return; this.lock(); + // TODO / BUG: File filtering not working on mac finder dialog, so we don't use it for now + #if !mac FileUtil.browseForBinaryFile('Open Chart', [FileUtil.FILE_EXTENSION_INFO_FNFC], onSelectFile, onCancelBrowse); + #else + FileUtil.browseForBinaryFile('Open Chart', null, onSelectFile, onCancelBrowse); + #end } /**