From 26248082d6a9abaa519cc652a30f95fd1f5a6fb8 Mon Sep 17 00:00:00 2001 From: Lucky56 <55949451+Lucky-56@users.noreply.github.com> Date: Mon, 7 Jun 2021 00:04:31 +0200 Subject: [PATCH] fixed Philly Nice to be Philly in story mode + fixed story mode song loading with spaces --- source/Song.hx | 4 ++-- source/StoryMenuState.hx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Song.hx b/source/Song.hx index d7bf608..78c47dd 100644 --- a/source/Song.hx +++ b/source/Song.hx @@ -46,9 +46,9 @@ class Song public static function loadFromJson(jsonInput:String, ?folder:String):SwagSong { - trace('loading ' + folder.toLowerCase() + '/' + jsonInput.toLowerCase()); + trace('loading ' + StringTools.replace(folder," ", "-").toLowerCase() + '/' + StringTools.replace(jsonInput," ", "-").toLowerCase()); - var rawJson = Assets.getText(Paths.json(folder.toLowerCase() + '/' + jsonInput.toLowerCase())).trim(); + var rawJson = Assets.getText(Paths.json(StringTools.replace(folder," ", "-").toLowerCase() + '/' + StringTools.replace(jsonInput," ", "-").toLowerCase())).trim(); while (!rawJson.endsWith("}")) { diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index 501cf2b..e244647 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -27,7 +27,7 @@ class StoryMenuState extends MusicBeatState ['Tutorial'], ['Bopeebo', 'Fresh', 'Dad Battle'], ['Spookeez', 'South', "Monster"], - ['Pico', 'Philly Nice', "Blammed"], + ['Pico', 'Philly', "Blammed"], ['Satin Panties', "High", "Milf"], ['Cocoa', 'Eggnog', 'Winter Horrorland'], ['Senpai', 'Roses', 'Thorns']