Skip to content

Commit

Permalink
Read ColorTable from gpu, + color table related updates
Browse files Browse the repository at this point in the history
  • Loading branch information
PassiveModding committed Jul 9, 2024
1 parent 59b5256 commit 3f4ecef
Show file tree
Hide file tree
Showing 12 changed files with 486 additions and 359 deletions.
1 change: 1 addition & 0 deletions Meddle/Meddle.Plugin/Meddle.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.13" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Vortice.Direct3D11" Version="3.5.0" />
<Reference Include="Dalamud">
<HintPath>$(DalamudLibPath)Dalamud.dll</HintPath>
<Private>false</Private>
Expand Down
13 changes: 4 additions & 9 deletions Meddle/Meddle.Plugin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public Plugin(IDalamudPluginInterface pluginInterface)
.AddSingleton<InteropService>()
.AddSingleton<ExportUtil>();

var config = pluginInterface.GetPluginConfig() as Configuration ?? new Configuration(pluginInterface);
Configuration.PluginInterface = pluginInterface;
var config = pluginInterface.GetPluginConfig() as Configuration ?? new Configuration();
serviceCollection.AddSingleton(config);

var gameDir = Environment.CurrentDirectory;
Expand Down Expand Up @@ -114,19 +115,13 @@ public void Dispose()

public class Configuration : IPluginConfiguration
{
private readonly IDalamudPluginInterface pi;

public Configuration(IDalamudPluginInterface pi)
{
this.pi = pi;
}

public static IDalamudPluginInterface PluginInterface = null!;
public int Version { get; set; } = 1;
public bool ShowAdvanced { get; set; }
public bool OpenOnLoad { get; set; }
public void Save()
{
pi.SavePluginConfig(this);
PluginInterface.SavePluginConfig(this);
}

}
Loading

0 comments on commit 3f4ecef

Please sign in to comment.