mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 20:24:17 +01:00
32 lines
No EOL
825 B
C#
32 lines
No EOL
825 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Penumbra.Util;
|
|
|
|
namespace Penumbra.Mod
|
|
{
|
|
public class Mod
|
|
{
|
|
public ModSettings Settings { get; }
|
|
public ModData Data { get; }
|
|
public ModCache Cache { get; }
|
|
|
|
public Mod( ModSettings settings, ModData data )
|
|
{
|
|
Settings = settings;
|
|
Data = data;
|
|
Cache = new ModCache();
|
|
}
|
|
|
|
public bool FixSettings()
|
|
=> Settings.FixInvalidSettings( Data.Meta );
|
|
|
|
public HashSet< GamePath > GetFiles( FileInfo file )
|
|
{
|
|
var relPath = new RelPath( file, Data.BasePath );
|
|
return ModFunctions.GetFilesForConfig( relPath, Settings, Data.Meta );
|
|
}
|
|
|
|
public override string ToString()
|
|
=> Data.Meta.Name;
|
|
}
|
|
} |