private void CacheSegmentConfig(SegmentConfig config) { string path = _storePath + AutoTuneDir; if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } string path2 = _storePath + SegmentConfigCacheFilePath; using (StreamWriter streamWriter = new StreamWriter(path2)) { streamWriter.Write(config.ToJsonDictionary()); } }
private void CacheSegmentConfig(SegmentConfig config) { var dirPath = _storePath + AutoTuneDir; if (!Directory.Exists(dirPath)) { Directory.CreateDirectory(dirPath); } var filePath = _storePath + SegmentConfigCacheFilePath; Debug.Log("autotune storing segment config to file: " + filePath); using (var writer = new StreamWriter(filePath)) { writer.Write(config.ToJsonDictionary()); } }