diff --git a/source/KadeEngineData.hx b/source/KadeEngineData.hx index 38bd27d..7e11ad3 100644 --- a/source/KadeEngineData.hx +++ b/source/KadeEngineData.hx @@ -63,6 +63,9 @@ class KadeEngineData if (FlxG.save.data.ghost == null) FlxG.save.data.ghost = true; + if (FlxG.save.data.distractions == null) + FlxG.save.data.distractions = true; + Conductor.recalculateTimings(); Main.watermarks = FlxG.save.data.watermark; diff --git a/source/PauseSubState.hx b/source/PauseSubState.hx index 5e73f4b..ba3ea0e 100644 --- a/source/PauseSubState.hx +++ b/source/PauseSubState.hx @@ -1,6 +1,6 @@ package; -#if cpp +#if windows import llua.Lua; #end import Controls.Control; @@ -182,7 +182,7 @@ class PauseSubState extends MusicBeatSubstate FlxG.resetState(); case "Exit to menu": PlayState.loadRep = false; - #if cpp + #if windows if (PlayState.lua != null) { Lua.close(PlayState.lua); diff --git a/source/PlayState.hx b/source/PlayState.hx index 473d177..94b1f49 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -435,7 +435,7 @@ class PlayState extends MusicBeatState repPresses = 0; repReleases = 0; - #if sys + #if windows executeModchart = FileSystem.exists(Paths.lua(PlayState.SONG.song.toLowerCase() + "/modchart")); #end #if !cpp