20 lines
428 B
C#
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;
|
|||
|
}
|
|||
|
}
|