Curious as to why the images are not embedded in DLL/EXE

Topics: Rawr.Base
Jan 15, 2010 at 5:01 PM

I takes quite a few minutes to extract the ZIP into a folder due to the large number of images that are extracted. Just wondering why all the graphic images aren't embedded as resources in the EXE or DLL? It would greatly improve extraction time.

 

Developer
Jan 15, 2010 at 5:09 PM

The images are dynamic and could possibly change (blizz changes icons every now and then), embedding them would mean it would be harder to swap them if something changed.

Jan 16, 2010 at 6:51 AM

Yes the images can change, but they're distributed to users only when a new build comes out. This could be in its own project (i.e. Rawr.Resources.dll) to reduce impact on developers.

Coordinator
Jan 16, 2010 at 7:19 AM

No, you misunderstand. They truly are dynamic. The client certainly gets new ones, for example.

Regardless, this is obsoleted in Rawr3, and in the mean time you can just improve your personal situation by getting a decent unzip tool.

Editor
Jan 16, 2010 at 7:49 AM

I highly recommend 7-Zip.

Jan 16, 2010 at 8:02 AM

When does the client get new icons? It appears this only happens if the image doesn't already exist locally. When would this happen? Either the user didn't take them out of the ZIP, deleted them, or the image is a new image. A new image would appear if there's an item you didn't already have in your cache (not a common case), or Blizz decided to update which icon was used for an item (also not a common case). For either of those cases a fallback to files on the filesystem seems like a reasonable approach. You'll avoid having to constantly hit the disk to load images (they'll be loaded into RAM at startup when the resources dll gets loaded.

Developer
Jan 16, 2010 at 8:22 AM

we dont include every image in the zip file, just a bunch of them.

Coordinator
Jan 16, 2010 at 9:42 AM

I think you may have missed the 'this is obsoleted in Rawr3, and in the mean time you can just improve your personal situation by getting a decent unzip tool.' part.