public string GetSavePath(ES2Settings.SaveLocation saveLocation) { if (IsURL()) { return(filePath); } else if (saveLocation == ES2Settings.SaveLocation.PlayerPrefs) { return(playerPrefsPath); } else if (saveLocation == ES2Settings.SaveLocation.File) { return(filePath); } return(""); }
public void Init() { if (!ES2.initialised) { ES2.Init(); } // Initialize global settings, saveLocation = ES2GlobalSettings.defaultSaveLocation; optimizeMode = ES2GlobalSettings.defaultOptimizeMode; format = ES2GlobalSettings.defaultFormat; encrypt = ES2GlobalSettings.defaultEncrypt; encryptionPassword = ES2GlobalSettings.defaultEncryptionPassword; encryptionType = ES2GlobalSettings.defaultEncryptionType; webUsername = ES2GlobalSettings.defaultWebUsername; webPassword = ES2GlobalSettings.defaultWebPassword; webFilename = ES2GlobalSettings.defaultWebFilename; }
public void Awake() { if (Application.platform == RuntimePlatform.WebGLPlayer) { defaultSaveLocation = ES2Settings.SaveLocation.PlayerPrefs; } else { defaultSaveLocation = saveLocation; } defaultOptimizeMode = optimizeMode; defaultEncrypt = encrypt; defaultEncryptionPassword = encryptionPassword; defaultEncryptionType = encryptionType; defaultWebUsername = webUsername; defaultWebPassword = webPassword; defaultBufferSize = bufferSize; defaultPCDataPath = PCDataPath; defaultMacDataPath = MacDataPath; }
public ES2Settings(SaveLocation saveLocation) { Init(); this.saveLocation = saveLocation; }