fungus icon indicating copy to clipboard operation
fungus copied to clipboard

Store the profile name list in player prefs

Open awiebe opened this issue 6 years ago • 2 comments

This should store the list of profiles as a base64 string, but needs further testing. Call deserializeProfileList() if you want to extract the list of profiles(e.g. for some kind of load/save profile command)

I'd put it on the develop branch if one existed.

awiebe avatar Jul 22 '18 04:07 awiebe

Hi aweibe, thanks for the PR. Could you explain the benefit of storing the profile name list as a base64 string? Is it possible this change might cause problems for users with existing save data upgrading from an previous version of Fungus? There also appear to be some compile errors in SaveVariable.cs currently.

Cheers, Chris

chrisgregan avatar Sep 10 '18 21:09 chrisgregan

@chrisgregan Fungus has a way to set the active profile using a key, but doesn't have a way to retrieve the names of these profile keys, at least as far as I could see.

So if for example you wanted to present the user with a list of save-games, you would need to grab the list from the PlayerPrefs

awiebe avatar Feb 26 '19 12:02 awiebe