Re: Embed files into binary.

2016-06-05 Thread rikki cattermole via Digitalmars-d-learn
On 06/06/2016 6:45 PM, Pie? wrote: On Monday, 6 June 2016 at 06:10:35 UTC, rikki cattermole wrote: On 06/06/2016 6:06 PM, Pie? wrote: On Monday, 6 June 2016 at 05:30:12 UTC, rikki cattermole wrote: On 06/06/2016 5:07 PM, Pie? wrote: [...] Then I would say go get a new image library as that

Re: Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 06:10:35 UTC, rikki cattermole wrote: On 06/06/2016 6:06 PM, Pie? wrote: On Monday, 6 June 2016 at 05:30:12 UTC, rikki cattermole wrote: On 06/06/2016 5:07 PM, Pie? wrote: [...] Then I would say go get a new image library as that one isn't a very good one. ..snip

Re: Embed files into binary.

2016-06-05 Thread rikki cattermole via Digitalmars-d-learn
On 06/06/2016 6:06 PM, Pie? wrote: On Monday, 6 June 2016 at 05:30:12 UTC, rikki cattermole wrote: On 06/06/2016 5:07 PM, Pie? wrote: [...] Then I would say go get a new image library as that one isn't a very good one. ..snip.. Right got rid of all that text. If you want to make the filesys

Re: Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 05:30:12 UTC, rikki cattermole wrote: On 06/06/2016 5:07 PM, Pie? wrote: [...] Then I would say go get a new image library as that one isn't a very good one. ..snip.. Right got rid of all that text. If you want to make the filesystem appear to have files it doesn

Re: Embed files into binary.

2016-06-05 Thread rikki cattermole via Digitalmars-d-learn
On 06/06/2016 5:07 PM, Pie? wrote: On Monday, 6 June 2016 at 03:23:02 UTC, rikki cattermole wrote: On 06/06/2016 3:11 PM, Pie? wrote: On Monday, 6 June 2016 at 02:34:07 UTC, Adam D. Ruppe wrote: On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I believe the essentially converted the file i

Re: Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
rstood. (i.e., vague questions generally gets/desires vague results, intelligent questions generally get/desires intelligent results, etc.) In fact, I posted the most generic(and possibly vague) question I could: "Embed files into binary." I stated, but not exclaimed or questi

Re: Embed files into binary.

2016-06-05 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 6 June 2016 at 03:11:32 UTC, Pie? wrote: e.g., how could I do this easily with your read in your png module? It takes a file.. /// Easily reads a png file into a MemoryImage MemoryImage readPng(string filename) { import std.file; return imageFromPng(readPng(cast(ubyte

Re: Embed files into binary.

2016-06-05 Thread rikki cattermole via Digitalmars-d-learn
On 06/06/2016 3:11 PM, Pie? wrote: On Monday, 6 June 2016 at 02:34:07 UTC, Adam D. Ruppe wrote: On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I believe the essentially converted the file into a ubyte or something and then wrote that out to a temp file and read in the temp file... this see

Re: Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 02:34:07 UTC, Adam D. Ruppe wrote: On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I believe the essentially converted the file into a ubyte or something and then wrote that out to a temp file and read in the temp file... this seems a bit of a kludge to me. They

Re: Embed files into binary.

2016-06-05 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I believe the essentially converted the file into a ubyte or something and then wrote that out to a temp file and read in the temp file... this seems a bit of a kludge to me. They might do that for certain special cases, but import("file.wha

Re: Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
On Monday, 6 June 2016 at 02:18:48 UTC, docandrew wrote: On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I saw somewhere someone explaining how to embed resources into a binary using the import keyword. I believe the essentially converted the file into a ubyte or something and then wrote

Re: Embed files into binary.

2016-06-05 Thread docandrew via Digitalmars-d-learn
On Monday, 6 June 2016 at 02:05:09 UTC, Pie? wrote: I saw somewhere someone explaining how to embed resources into a binary using the import keyword. I believe the essentially converted the file into a ubyte or something and then wrote that out to a temp file and read in the temp file... this

Embed files into binary.

2016-06-05 Thread Pie? via Digitalmars-d-learn
I saw somewhere someone explaining how to embed resources into a binary using the import keyword. I believe the essentially converted the file into a ubyte or something and then wrote that out to a temp file and read in the temp file... this seems a bit of a kludge to me. Is it possible to d