mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Style] Add custom replacements for some System.IO.Path methods
This commit is contained in:
@@ -5260,7 +5260,7 @@ namespace SabreTools.Helper.Dats
|
||||
foreach (string key in keys)
|
||||
{
|
||||
// Here, the key is the name of the game to be used for comparison
|
||||
if (tempDat.Name != null && tempDat.Name != Path.GetDirectoryName(key))
|
||||
if (tempDat.Name != null && tempDat.Name != Style.GetDirectoryName(key))
|
||||
{
|
||||
// Get the path that the file will be written out to
|
||||
string path = HttpUtility.HtmlDecode(String.IsNullOrEmpty(tempDat.Name)
|
||||
@@ -5303,7 +5303,7 @@ namespace SabreTools.Helper.Dats
|
||||
}
|
||||
|
||||
// Then set the DAT name to be the parent directory name
|
||||
tempDat.Name = Path.GetDirectoryName(key);
|
||||
tempDat.Name = Style.GetDirectoryName(key);
|
||||
}
|
||||
|
||||
// Then we write the last DAT out since it would be skipped otherwise
|
||||
|
||||
Reference in New Issue
Block a user