Skip to content

Commit 73b7a41

Browse files
[CRASHFIX] Fix Stage Editor crashing on exit when unsaved changes exist
1 parent 0953b97 commit 73b7a41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/funkin/ui/debug/stageeditor/StageEditorState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ class StageEditorState extends UIState
502502
var filestats:Array<sys.FileStat> = [];
503503
if (files.length > 0)
504504
{
505-
while (!files[files.length - 1].endsWith(FileUtil.FILE_FILTER_FNFS.extension) || !files[files.length - 1].startsWith('stage-editor-'))
505+
while (!files[files.length - 1].endsWith('.fnfs') || !files[files.length - 1].startsWith('stage-editor-'))
506506
{
507507
if (files.length == 0) break;
508508
files.pop();
@@ -1637,7 +1637,7 @@ class StageEditorState extends UIState
16371637
var data = this.packShitToZip();
16381638
var path = haxe.io.Path.join([
16391639
BACKUPS_PATH,
1640-
'stage-editor-${stageName}-${funkin.util.DateUtil.generateTimestamp()}.${FileUtil.FILE_FILTER_FNFS.extension}'
1640+
'stage-editor-${stageName}-${funkin.util.DateUtil.generateTimestamp()}.fnfs'
16411641
]);
16421642

16431643
FileUtil.writeBytesToPath(path, data);

0 commit comments

Comments
 (0)