Class LegacyPreferences
java.lang.Object
com.prineside.tdi2.managers.preferences.LegacyPreferences
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromBytes(byte[] data, int offset, int count) fromCompactBase64(String base64Data) Used to parse cloud saves and backups Same return format as getLocallyStoredPrefs()getPropertiesInstance(String preferencesName) Legacy Allows to read properties from the legacy encrypted storage (Properties) These instances no longer allow to modify their data / flush it
-
Constructor Details
-
LegacyPreferences
public LegacyPreferences()
-
-
Method Details
-
getLocallyStoredPrefs
- Returns:
- array of legacy preferences. Array( PreferencesName -> Map of preferences ) Preferences are being searched by file names defined in Config.LEGACY_PREFERENCES_NAMES Names of preferences are: - Progress - Settings - Statistics - UserMaps
-
fromBytes
-
fromCompactBase64
Used to parse cloud saves and backups Same return format as getLocallyStoredPrefs() -
getPropertiesInstance
Legacy Allows to read properties from the legacy encrypted storage (Properties) These instances no longer allow to modify their data / flush it
-