runestubbe / Crinkler

Crinkler is an executable file compressor (or rather, a compressing linker) for compressing small 32-bit Windows demoscene executables. As of 2020, it is the most widely used tool for compressing 1k/4k/8k intros.
http://crinkler.net/
Other
1.07k stars 54 forks source link

exe file icon disappeared #12

Open 1027663760 opened 2 years ago

1027663760 commented 2 years ago

I used the res file to import the icon. When I use vc6 link.exe, everything is normal, but after compiling with Crinkler, the exe icon disappears, and other rc resources cannot be read.

therontarigo commented 10 months ago

This will probably be closed as won't-fix. Resources require several additional structures to be present in uncompressed form in the exe file. The only compression supported by Windows for the program Icon is PNG (Deflate). These requirements are contrary to Crinkler's priority of maximum utilization of exe space for code and data usable from the running program.

That said, with much work the headers could be modified to support a small icon, it is not impossible.