remove everything after the -
This commit is contained in:
parent
3a9baca66b
commit
05f11f2ced
|
|
@ -1027,7 +1027,9 @@ public class GlobalFuncs
|
||||||
{
|
{
|
||||||
if (dir.Contains(terms) && !dir.Contains("_default"))
|
if (dir.Contains(terms) && !dir.Contains("_default"))
|
||||||
{
|
{
|
||||||
FixedFileCopy(dir, Settings.GraphicsOptions.GetPathForClientLoadOptions(info.ClientLoadOptions) + @"\" + Path.GetFileName(dir).Replace(terms, "").Replace("-Shaders", ""), true);
|
FixedFileCopy(dir, Settings.GraphicsOptions.GetPathForClientLoadOptions(info.ClientLoadOptions) + @"\" + Path.GetFileName(dir).Replace(terms, "")
|
||||||
|
.Replace(dir.Substring(dir.LastIndexOf('-') + 1), "")
|
||||||
|
.Replace("-", ".xml"), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1153,7 +1155,9 @@ public class GlobalFuncs
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
doc.Save(dir);
|
doc.Save(dir);
|
||||||
FixedFileCopy(dir, Settings.GraphicsOptions.GetPathForClientLoadOptions(info.ClientLoadOptions) + @"\" + Path.GetFileName(dir).Replace(terms, "").Replace("-Shaders", ""), true);
|
FixedFileCopy(dir, Settings.GraphicsOptions.GetPathForClientLoadOptions(info.ClientLoadOptions) + @"\" + Path.GetFileName(dir).Replace(terms, "")
|
||||||
|
.Replace(dir.Substring(dir.LastIndexOf('-') + 1), "")
|
||||||
|
.Replace("-", ".xml"), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue