X Tutup
Skip to content

Commit 80d7ace

Browse files
KoloInDaCribHundrec
authored andcommitted
remove the stupid chud gibberish
1 parent a7d5736 commit 80d7ace

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

source/funkin/util/SerializerUtil.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class SerializerUtil
3434
*/
3535
public static function fromJSON(input:String):Dynamic
3636
{
37+
input = input.substring(input.indexOf("{"), input.lastIndexOf("}") + 1);
38+
3739
try
3840
{
3941
return Json.parse(input);

source/funkin/util/macro/RegistryMacro.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class RegistryMacro
182182
switch (this.loadEntryFile(id))
183183
{
184184
case {fileName: fileName, contents: contents}:
185-
parser.fromJson(contents, fileName);
185+
parser.fromJson(contents.substring(contents.indexOf("{"), contents.lastIndexOf("}") + 1), fileName);
186186
default:
187187
return null;
188188
}

0 commit comments

Comments
 (0)
X Tutup