private void DeSerialisationFixes(StreamingContext like_i_could_care) { // Turn our download path into a fully qualified URL. download_path = KSAPI.ExpandPath(download_path).ToString(); log.DebugFormat("Download path is {0}", download_path); }
public override object ReadJson( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) { return(KSAPI.ExpandPath(reader.Value.ToString())); }
/// <summary> /// Returns the path to the mod's home on KerbalStuff /// </summary> /// <returns>The home.</returns> internal Uri KSHome() { return(KSAPI.ExpandPath(String.Format("/mod/{0}/{1}", id, name))); }
internal string KSHome() { Uri path = KSAPI.ExpandPath(String.Format("/mod/{0}/{1}", id, name)); return(Uri.EscapeUriString(path.ToString())); }