mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatTools] Revert one usage of Path.Combine
This commit is contained in:
@@ -2144,7 +2144,9 @@ namespace SabreTools.Helper
|
|||||||
|
|
||||||
rootpath += (rootpath == "" ? "" : Path.DirectorySeparatorChar.ToString());
|
rootpath += (rootpath == "" ? "" : Path.DirectorySeparatorChar.ToString());
|
||||||
filename = filename.Remove(0, rootpath.Length);
|
filename = filename.Remove(0, rootpath.Length);
|
||||||
newrom.Game = Path.Combine(Path.GetDirectoryName(filename), Path.GetFileNameWithoutExtension(filename), newrom.Game);
|
newrom.Game = Path.GetDirectoryName(filename) + Path.DirectorySeparatorChar
|
||||||
|
+ Path.GetFileNameWithoutExtension(filename) + Path.DirectorySeparatorChar
|
||||||
|
+ newrom.Game;
|
||||||
newroms.Add(newrom);
|
newroms.Add(newrom);
|
||||||
}
|
}
|
||||||
userData.Roms[key] = newroms;
|
userData.Roms[key] = newroms;
|
||||||
|
|||||||
Reference in New Issue
Block a user