public static void Save() { keybinds.SaveToPrefs(); //PlayerPrefs.SetFloat("Settings_Resolution",resolution); Unity gets the latest resolution automagically PlayerPrefsX.SetBool("Settings_EnableTrails", enableTrails); PlayerPrefsX.SetBool("Settings_Fullscreen", fullscreen); PlayerPrefs.SetInt("Settings_AA", aa); PlayerPrefsX.SetBool("Settings_Vsync", vsync); PlayerPrefsX.SetBool("Settings_Shadows", shadows); PlayerPrefs.SetFloat("Settings_SensitivityMouse", sensitivityMouse); PlayerPrefs.SetFloat("Settings_SensitivityKeyboard", sensitivityKeyboard); PlayerPrefs.SetFloat("Settings_Volume", volume); PlayerPrefsX.SetBool("Settings_Music", music); PlayerPrefsX.SetBool("Settings_SanicSpeedSong", sanicSpeedSong); string toBeSavedPlaylist = ""; foreach (ExternalSong s in userPlaylist) { toBeSavedPlaylist += s.filename + "@"; } if (toBeSavedPlaylist.Length > 0) { // remove the last @ toBeSavedPlaylist = toBeSavedPlaylist.Remove(toBeSavedPlaylist.Length - 1, 1); } PlayerPrefs.SetString("User_Playlist", toBeSavedPlaylist); string toBeSavedDisabledSongs = ""; foreach (Song s in Global.playlist) { if (!s.enabled) { toBeSavedDisabledSongs += s.name + "@"; } } if (toBeSavedDisabledSongs.Length > 0) { // remove the last @ toBeSavedDisabledSongs = toBeSavedDisabledSongs.Remove(toBeSavedDisabledSongs.Length - 1, 1); } PlayerPrefs.SetString("User_DisabledSongs", toBeSavedDisabledSongs); PlayerPrefs.Save(); }