sinmai-mods/ImproveLoadTimes/Manager/MaiStudio/Serialize/patch_FilePath.cs

20 lines
428 B
C#
Raw Normal View History

2024-08-08 06:32:25 +00:00
// 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;
}
}