From f31813c9dbe79d6d06e42722a982235287669b5e Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 13 Oct 2020 22:02:36 -0700 Subject: [PATCH] CLEANED JSON LOL --- assets/data/smash/smash.json | Bin 0 -> 154 bytes source/ChartingState.hx | 2 +- source/Main.hx | 2 +- source/PlayState.hx | 2 +- source/Song.hx | 14 +++++++++++++- 5 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 assets/data/smash/smash.json diff --git a/assets/data/smash/smash.json b/assets/data/smash/smash.json new file mode 100644 index 0000000000000000000000000000000000000000..3eb9cdf64b52cadce87db47e2ad3f3705f30e684 GIT binary patch literal 154 zcmb = []; - var songData = Json.parse(Assets.getText('assets/data/' + jsonInput + '/' + jsonInput + '.json')); + var rawJson = Assets.getText('assets/data/' + jsonInput + '/' + jsonInput + '.json').trim(); + + while (!rawJson.endsWith("}")) + { + rawJson = rawJson.substr(0, rawJson.length - 1); + // LOL GOING THROUGH THE BULLSHIT TO CLEAN IDK WHATS STRANGE + } + + trace(rawJson); + + var songData = Json.parse(rawJson); daNotes = songData.notes; daSong = songData.song;