diff --git a/ProjectLighthouse.sln.DotSettings b/ProjectLighthouse.sln.DotSettings
index 6439f6b2..b1e0b19f 100644
--- a/ProjectLighthouse.sln.DotSettings
+++ b/ProjectLighthouse.sln.DotSettings
@@ -76,6 +76,7 @@
DDS
DLC
IP
+ JPG
LBP
MM
NAT
diff --git a/ProjectLighthouse/Helpers/ImageHelper.cs b/ProjectLighthouse/Helpers/ImageHelper.cs
index 931d9fda..0ca57332 100644
--- a/ProjectLighthouse/Helpers/ImageHelper.cs
+++ b/ProjectLighthouse/Helpers/ImageHelper.cs
@@ -28,7 +28,7 @@ public static class ImageHelper
return type switch
{
LbpFileType.Texture => TextureToPNG(hash, reader),
- LbpFileType.Png => PNGToPNG(hash),
+ LbpFileType.Png => PNGToPNG(hash, data),
LbpFileType.Jpeg => JPGToPNG(hash, data),
_ => false,
};
@@ -114,9 +114,9 @@ public static class ImageHelper
// it sounds dumb i know but hear me out:
// you're completely correct
- private static bool PNGToPNG(string hash)
+ private static bool PNGToPNG(string hash, byte[] data)
{
- File.Copy(FileHelper.GetResourcePath(hash), $"png/{hash}.png");
+ File.WriteAllBytes($"png/{hash}.png", data);
return true;
}
}
\ No newline at end of file