Com64 said:
Just an idea: if there isn't a way to detect the framebuffer bitdepth, you could make separate executables for the different depths.
Also: the Caanoo does store the time and date.
ok these things are done already now :
1) copy the deamon to /tmp and it's being run from there (done using script that starts it the gpe bin/sh file) (to not block usb mounting)
2) remember last screenshot number in a file (on /mnt/sd/photo/screenshots)
3) create /mnt/sd/photo/screenshots and save screenshots there now
4) support the joystick click button and make it the default key for taking screenshots (i don't think many games require you to use the joystick click button)
5) i tried using IOCTL FBIOGET_VSCREENINFO to get the framebuffer bit depth but it always seems to return 24 bit, maybe i'm doing something wrong. but it could be it's not usefull for this will have to test it more with this but it seems to take all screenshots in 24 bit mode (so this is not working). I'll try your suggestion but will adopt it, i'll add a command line parameter to define bit depth and use diffrent gpe script files to launch it, i will also make sure the script kills the previous instance using the killall commando to not let the deamon be ran multiple times (other wise you'd have to reboot the caanoo to take a screenshot if the game uses a diffrent bitdepth) (starting the app twice also ment double screenshots).
6) fixed and array overflow bug (slipped in due to hasty porting)
7) fixed forgotten fclose(f) on the keyconfig file
So all is working now except point 5, i'll add point 5 using the commandline parameter, create scripts and png's for 8 - 16 - 24 and 32 bit depth to see the diffrence and do a new release i'll also check for the date time thingie first since if RTC works on caanoo it can't be too hard
edit: ran into a few bugs which i did not solve yet, i'm off to bed so it'll be for tomorow most probably