mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-12-03 12:56:59 -05:00
chart shit cooler (hashlink saving workaround)
This commit is contained in:
parent
122545405b
commit
3fe28602d3
1 changed files with 5 additions and 0 deletions
|
@ -1082,6 +1082,10 @@ class ChartingState extends MusicBeatState
|
|||
|
||||
var data:String = Json.stringify(json);
|
||||
|
||||
#if hl
|
||||
var filename = _song.song.toLowerCase();
|
||||
sys.io.File.saveContent('./$filename.json', data);
|
||||
#else
|
||||
if ((data != null) && (data.length > 0))
|
||||
{
|
||||
_file = new FileReference();
|
||||
|
@ -1090,6 +1094,7 @@ class ChartingState extends MusicBeatState
|
|||
_file.addEventListener(IOErrorEvent.IO_ERROR, onSaveError);
|
||||
_file.save(data.trim(), _song.song.toLowerCase() + ".json");
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
function onSaveComplete(_):Void
|
||||
|
|
Loading…
Reference in a new issue