mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
parent
ad5606971b
commit
c04c9241b7
@ -74,7 +74,9 @@ namespace AssetRipper.Export.UnityProjects.Project.Collections
|
||||
_ => asset.GetBestName(),
|
||||
};
|
||||
fileName = FileUtils.RemoveCloneSuffixes(fileName);
|
||||
if (string.IsNullOrWhiteSpace(fileName))
|
||||
fileName = FileUtils.RemoveInstanceSuffixes(fileName);
|
||||
fileName = fileName.Trim();
|
||||
if (string.IsNullOrEmpty(fileName))
|
||||
{
|
||||
fileName = asset.ClassName;
|
||||
}
|
||||
|
||||
@ -28,6 +28,11 @@ namespace AssetRipper.IO.Files.Utils
|
||||
return path.Replace("(Clone)", string.Empty);
|
||||
}
|
||||
|
||||
public static string RemoveInstanceSuffixes(string path)
|
||||
{
|
||||
return path.Replace("(Instance)", string.Empty);
|
||||
}
|
||||
|
||||
public static string GetUniqueName(string dirPath, string fileName, int maxNameLength)
|
||||
{
|
||||
string? ext = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user