Will commit another update soon.
Yes, but part for part. I need time for look-up and tests.
Newest: Rev. 948 -> luascript.c less memory, get_meminfo() and camera.h defines, twice lua FUNC(get_av96) deleted
intend: your /generc/lib.c
The latest commit for CHDK contains mostly white space and cosmetic changes to the platform files - apologies for it being a large change (and difficult to validate); but after this the changes should be mostly functional and we can focus on the areas where the two systems have different code.
The generic/lib.c is one such area - the CHDK version contains code that is common to some vxworks cameras; but has no use for dryos. My preference would be to get rid of it as you have done.
- create a palette.h file for each camera in the platform directory
Is this not too much? I think the difference is only one camera.
Comment to SetFileAttributes: CHDKLover created a lua function for Eye-Fi card download in "selectiv transfer mode". Since DRYOS R47 signature failed. (Description, Thread with example)
rudi
The goal was to automate the creation of the palette.h files with a script (like I did with camera.h/platform_camera.h) - doing it manually would be a pain. There are advantages and disadvantages to each method, reyalp pointed out some earlier. My view is a palette.h file for each camera would be a better long term solution since new cameras all seem to have different palettes (the number may grow quickly from now on).
There's an extra palette entry in CHDK-DE which changes the palette number for all later cameras, it's not a huge issue to fix if that's the preferred approach.
I will look at SetFileAttributes to see if I can fix the signature finder for R47 and later.
Phil.