From 34828ef6b43de62a074c4c13bf65ab6ec33d12a9 Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Tue, 20 Jul 2021 02:22:31 -0700 Subject: [PATCH] fix caching --- source/Caching.hx | 7 +++++++ source/TitleState.hx | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/source/Caching.hx b/source/Caching.hx index 1cf66ac..568c921 100644 --- a/source/Caching.hx +++ b/source/Caching.hx @@ -49,6 +49,13 @@ class Caching extends MusicBeatState override function create() { + + FlxG.save.bind('funkin', 'ninjamuffin99'); + + PlayerSettings.init(); + + KadeEngineData.initSave(); + FlxG.mouse.visible = false; FlxG.worldBounds.set(0,0); diff --git a/source/TitleState.hx b/source/TitleState.hx index 6b8d764..1a42555 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -67,6 +67,18 @@ class TitleState extends MusicBeatState trace("Loaded " + openfl.Assets.getLibrary("default").assetsLoaded + " assets (DEFAULT)"); } + #if !cpp + + FlxG.save.bind('funkin', 'ninjamuffin99'); + + PlayerSettings.init(); + + KadeEngineData.initSave(); + + #end + + + Highscore.load(); curWacky = FlxG.random.getObject(getIntroTextShit());