Stickers: fuck

This commit is contained in:
NotAKidoS 2024-08-25 07:15:27 -05:00
parent 83c841f60f
commit f178994dfe

View file

@ -140,7 +140,7 @@ public static class StickerCache
imageStream.Dispose(); imageStream.Dispose();
return false; return false;
} }
PrepareIconFromMemoryStream(ModSettings.ModName, relativePathWithoutExtension, imageStream); PrepareIconFromMemoryStream(ModSettings.ModName, relativePathWithoutExtension, imageStream);
imageStream.Dispose(); imageStream.Dispose();
return true; return true;
@ -154,9 +154,10 @@ public static class StickerCache
} }
else else
{ {
iconPath = UIUtils.GetCleanString(iconPath); //iconPath = UIUtils.GetCleanString(iconPath);
iconPath = Path.Combine(ThumbnailPath, iconPath); iconPath = Path.Combine(ThumbnailPath, iconPath);
File.WriteAllBytes(iconPath + ".png", destination.ToArray()); File.WriteAllBytes(iconPath + ".png", destination.ToArray());
//StickerMod.Logger.Msg("Prepared icon: " + iconPath);
} }
} }