File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "developerMode" : true ,
3+ "scriptsHotReloading" : true
4+ }
Original file line number Diff line number Diff line change @@ -12,11 +12,15 @@ class MainState extends ALEState
1212
1313 public static function preResetConfig ()
1414 {
15-
15+ CoolUtil . destroy ();
1616 }
1717
1818 public static function postResetConfig ()
1919 {
20+ CoolUtil .init ();
21+
22+ FlxSprite .defaultAntialiasing = ClientPrefs .data .antialiasing ;
23+
2024 Conductor .init ();
2125
2226 Paths .init ();
Original file line number Diff line number Diff line change @@ -19,4 +19,16 @@ import core.config.ALESave;
1919class CoolUtil
2020{
2121 public static var save : ALESave ;
22+
23+ public static function init ()
24+ {
25+ save = new ALESave ();
26+
27+ save .load ();
28+ }
29+
30+ public static function destroy ()
31+ {
32+ save ?. destroy ();
33+ }
2234}
You can’t perform that action at this time.
0 commit comments