Exemple #1
0
        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);
        }
Exemple #2
0
 public override object ReadJson(
     JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer
     )
 {
     return(KSAPI.ExpandPath(reader.Value.ToString()));
 }
Exemple #3
0
 /// <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)));
 }
Exemple #4
0
        internal string KSHome()
        {
            Uri path = KSAPI.ExpandPath(String.Format("/mod/{0}/{1}", id, name));

            return(Uri.EscapeUriString(path.ToString()));
        }