mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
16 lines
584 B
C#
16 lines
584 B
C#
using Penumbra.Api.Enums;
|
|
using Penumbra.Collections;
|
|
using Penumbra.Interop.PathResolving;
|
|
using Penumbra.String;
|
|
using Penumbra.String.Classes;
|
|
|
|
namespace Penumbra.Interop.Processing;
|
|
|
|
public sealed class MtrlPathPreProcessor : IPathPreProcessor
|
|
{
|
|
public ResourceType Type
|
|
=> ResourceType.Mtrl;
|
|
|
|
public FullPath? PreProcess(ResolveData resolveData, ByteString path, Utf8GamePath originalGamePath, bool nonDefault, FullPath? resolved)
|
|
=> nonDefault ? PathDataHandler.CreateMtrl(path, resolveData.ModCollection, originalGamePath) : resolved;
|
|
}
|