sinmai-mods/ImproveLoadTimes/Manager/MaiStudio/Serialize/patch_FilePath.cs
2024-08-08 13:32:25 +07:00

20 lines
428 B
C#

// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using MonoMod;
namespace Manager.MaiStudio.Serialize;
public class patch_FilePath : FilePath
{
[MonoModReplace]
public override void AddPath(string parentPath)
{
if (string.IsNullOrEmpty(path) || path.StartsWith(parentPath))
{
return;
}
path = parentPath + path;
}
}