Make line endings explicit in editorconfig and share in sub projects, also apply editorconfig everywhere and move some namespaces.

This commit is contained in:
Ottermandias 2023-09-18 16:56:16 +02:00
parent 53adb6fa54
commit 2b4a01df06
155 changed files with 1620 additions and 1614 deletions

View file

@ -13,8 +13,7 @@ public readonly record struct RgbaPixelData(int Width, int Height, byte[] PixelD
public RgbaPixelData((int Width, int Height) size, byte[] pixelData)
: this(size.Width, size.Height, pixelData)
{
}
{ }
public Image<Rgba32> ToImage()
=> Image.LoadPixelData<Rgba32>(PixelData, Width, Height);

View file

@ -79,8 +79,8 @@ public static class TexFileParser
w.Write(header.Width);
w.Write(header.Height);
w.Write(header.Depth);
w.Write((byte) header.MipLevels);
w.Write((byte) 0); // TODO Lumina Update
w.Write((byte)header.MipLevels);
w.Write((byte)0); // TODO Lumina Update
unsafe
{
w.Write(header.LodOffset[0]);

View file

@ -103,7 +103,7 @@ public static class TextureDrawer
public sealed class PathSelectCombo : FilterComboCache<(string, bool)>
{
private int _skipPrefix = 0;
private int _skipPrefix = 0;
public PathSelectCombo(TextureManager textures, ModEditor editor)
: base(() => CreateFiles(textures, editor))

View file

@ -1,4 +1,3 @@
using System.Collections.Concurrent;
using Dalamud.Interface;
using Dalamud.Plugin.Services;
using ImGuiScene;