Skip to content

Instantly share code, notes, and snippets.

@jpobst
Created January 19, 2011 02:39

Revisions

  1. jpobst created this gist Jan 19, 2011.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    public string MapFileName (string file)
    {
    string root = Engine.Session.ProgramStartInfo.ProjectDirectory;
    if (file.StartsWith (root))
    file = file.Substring (root.Length + 1);

    return file;
    }