if optimize mode is on, then remove assets and free memory

This commit is contained in:
KadeDeveloper
2021-08-13 17:20:55 -07:00
parent c3020d9dff
commit 5eb3a66b0c
9 changed files with 49 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class FreeplayState extends MusicBeatState
override function create()
{
clean();
var initSonglist = CoolUtil.coolTextFile(Paths.txt('data/freeplaySonglist'));
//var diffList = "";
@ -398,6 +399,7 @@ class FreeplayState extends MusicBeatState
PlayState.isSM = false;
#end
LoadingState.loadAndSwitchState(new PlayState());
clean();
}
}