mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-09 16:24:42 +00:00
volume save data finally fixed lol
This commit is contained in:
parent
9a801b43ad
commit
9694defa8d
|
@ -109,6 +109,23 @@ class TitleState extends MusicBeatState
|
|||
super.create();
|
||||
|
||||
FlxG.save.bind('funkin', 'ninjamuffin99');
|
||||
|
||||
// https://github.com/HaxeFlixel/flixel/pull/2396
|
||||
// IF/WHEN MY PR GOES THRU AND IT GETS INTO MAIN FLIXEL, DELETE THIS CHUNKOF CODE, AND THEN UNCOMMENT THE LINE BELOW
|
||||
// FlxG.sound.loadSavedPrefs();
|
||||
|
||||
if (FlxG.save.data.volume != null)
|
||||
{
|
||||
FlxG.sound.volume = FlxG.save.data.volume;
|
||||
}
|
||||
|
||||
if (FlxG.save.data.mute != null)
|
||||
{
|
||||
FlxG.sound.muted = FlxG.save.data.mute;
|
||||
}
|
||||
|
||||
// FlxG.save.close();
|
||||
// FlxG.sound.loadSavedPrefs();
|
||||
PreferencesMenu.initPrefs();
|
||||
PlayerSettings.init();
|
||||
Highscore.load();
|
||||
|
|
Loading…
Reference in a new issue