d2lmirrors / anolis

Anolis is the underlying project for the XPize and Vize resource switchers for Windows XP and Vista respectivly. The codebase allows for the easy swapping around of resources within Win32 executables and other files. (just adding some missing data)
GNU General Public License v2.0
1 stars 0 forks source link

Add RES/RC Support #37

Closed Dobby233Liu closed 1 year ago

Dobby233Liu commented 1 year ago

creation date = 2009-03-31T14:23:13.747-07:00

RES and RC support exists in several ways:   a) ResourceData needs an abstract .ToRCScript method which subclasses implement to generate RC scripts. Fortunately this isn't too difficult: MSDN has a whole section on them: ms-help://MS.MSDNQTR.v90.en/tools/tools/resource_definitionstatements.htm   b) Resourcer needs to be able to read-in compiled *.res files and show the resources within them. I'm not aware of any APIs for this so I'll have to read them in manually. Fortunately it's a well-documented format.   ...and then I can check-off "RES/RC Support" on the Wikipedia article! ( http://en.wikipedia.org/wiki/Resource(Windows) )

Dobby233Liu commented 1 year ago

creation date = 2009-04-07T04:58:13.08-07:00

I've now added in support for read-only *.res files and they seem to be working smoothly.

Supporting writing to *.res files is different, since they need rebuilding, but doable. I'll leave it for now.

I propose adding a third option c) There's a ResourceSource subclass that reads in .rc scripts and uses references to files to load the data. But that's a bit tricky since the data hasn't been preprocessed, so resources like Bitmaps and Icon Directories wouldn't work anymore. VS already has a good .rc editor, I don't see the need in expanding in this area.

Dobby233Liu commented 1 year ago

closed date = 2009-04-10T14:30:42.247-07:00

I'll pass on adding RC support for now, I don't think there's much need for it.

Maybe as a "2.0" feature