Thank You for your continued support and contributions!
I'd rather see the WPS code first attempt to load the images from the same dir the WPS file is located in.
%x|1|/filename.bmp|x|y
However I thought the .wps file had to be in .rockbox dir to be loaded as a default however a bit of experimentation should show if I a right.
I still think that some form of loop like syntax would be good for loading up the images in to an array type structure and would also be good for keeping the wps size down.
The best solution, as Daniel proposed, would be to make the files load from the same directory as the WPS file. That way we need no major WPS changes nor do we get locked into anything in particular. Everyone can keep their files in subdirs of .rockbox (I've wanted this for awhile, myself). If no one submits a patch for this in the next couple weeks I'll do it. I can't this week or next as I'll be on vacation and business travel.
Quote from: kenshin on October 24, 2005, 12:25:57 PMThe best solution, as Daniel proposed, would be to make the files load from the same directory as the WPS file. That way we need no major WPS changes nor do we get locked into anything in particular. Everyone can keep their files in subdirs of .rockbox (I've wanted this for awhile, myself). If no one submits a patch for this in the next couple weeks I'll do it. I can't this week or next as I'll be on vacation and business travel.I don't think this would be a good solution. The settings system only remembers the .wps if it's located directly in /.rockbox, not if it's in a sub-directory or elsewhere. This is for a reason - to save space in the settings sector. So if the .wps code would load the associated .bmp files from the .wps's dir, they would still clutter /.rockbox.
I can think of two possible solutions:Let the code load the .bmp files from a sub-dir of the .wps dir which is named the same as the .wps, but without extension, i.e "test1.wps" would load its images from "test1/"My old idea - allow multiple images in one .bmp file. The .bmp would be loaded once, then the various snippets can be displayed by specifying the region in pixels.
Page created in 0.178 seconds with 21 queries.