From e041e0d605210623d668237f9f3d57153ce817c4 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Fri, 22 Sep 2023 23:10:29 -0700 Subject: [PATCH] remove "-" change to " " --- source/funkin/editors/charter/Charter.hx | 4 ++-- source/funkin/editors/charter/CharterSelection.hx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 12d7c23b..280795bb 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -941,7 +941,7 @@ class Charter extends UIState { function _file_save(_) { #if sys - saveTo('${Paths.getAssetsRoot()}/songs/${__song.toLowerCase().replace("-", " ")}'); + saveTo('${Paths.getAssetsRoot()}/songs/${__song.toLowerCase()}'); undos.save(); return; #end @@ -958,7 +958,7 @@ class Charter extends UIState { function _file_meta_save(_) { #if sys sys.io.File.saveContent( - '${Paths.getAssetsRoot()}/songs/${__song.toLowerCase().replace("-", " ")}/meta.json', + '${Paths.getAssetsRoot()}/songs/${__song.toLowerCase()}/meta.json', Json.stringify(PlayState.SONG.meta == null ? {} : PlayState.SONG.meta, null, "\t") ); return; diff --git a/source/funkin/editors/charter/CharterSelection.hx b/source/funkin/editors/charter/CharterSelection.hx index d850b4aa..5e7ffff8 100644 --- a/source/funkin/editors/charter/CharterSelection.hx +++ b/source/funkin/editors/charter/CharterSelection.hx @@ -86,7 +86,7 @@ class CharterSelection extends EditorTreeMenu { } public function saveSong(creation:SongCreationData) { - var songAlreadlyExsits:Bool = [for (s in freeplayList.songs) s.name.toLowerCase()].contains(creation.meta.name.toLowerCase().replace("-", " ")); + var songAlreadlyExsits:Bool = [for (s in freeplayList.songs) s.name.toLowerCase()].contains(creation.meta.name.toLowerCase()); if (songAlreadlyExsits) { openSubState(new UIWarningSubstate("Creating Song: Error!", "The song you are trying to create alreadly exists, if you would like to override it delete the song first!", [ @@ -97,7 +97,7 @@ class CharterSelection extends EditorTreeMenu { // Paths var songsDir:String = '${Paths.getAssetsRoot()}/songs/'; - var songFolder:String = '$songsDir${creation.meta.name.replace("-", " ")}'; + var songFolder:String = '$songsDir${creation.meta.name}'; #if sys // Make Directories