From efcfbf811154d133aa95e84fbdfe3ad339a6c83c Mon Sep 17 00:00:00 2001 From: Murilo Miranda Date: Tue, 21 Oct 2025 00:56:42 -0300 Subject: [PATCH] Update image.d --- image.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/image.d b/image.d index 86a087c..552b67c 100644 --- a/image.d +++ b/image.d @@ -24,11 +24,14 @@ public import arsd.targa; public import arsd.pcx; public import arsd.dds; public import arsd.svg; - public import arsd.imageresize; import core.memory; +// this alias will represent the data type of files imported into the executable, it has to be immutable because the arsd library demands it, +// it is useful when you are embedding many images into the executable because they all need to be converted to immutable ubyte[] +alias memoryBlob = immutable ubyte[]; + static if (__traits(compiles, { import iv.vfs; })) enum ArsdImageHasIVVFS = true; else enum ArsdImageHasIVVFS = false; MemoryImage readSvg(string filename) {