FS#11522 - Make Rockbox recognize Game of Life configurations with a .l extension
Attached to Project:
Rockbox
Opened by Justin Hannigan (Chronon) - Friday, 06 August 2010, 16:54 GMT
Opened by Justin Hannigan (Chronon) - Friday, 06 August 2010, 16:54 GMT
|
DetailsSome collections (such as ftp://sunsite.unc.edu/pub/Linux/games/amusements/life/dblifelib-2.tgz) use an extension of ".l" instead of ".cells" for what appears to be the same file format (same comment character and same characters for dead and live cell).
This patch just adds an entry to viewers.config so that Rockbox will treat .l files as supported and open them with Rocklife. |
This task depends upon
http://psoup.math.wisc.edu/mcell/ca_files_formats.html#Life%201.05
I will work on adding support for .LIF .RLE and .L formats.
===========
dbLife (*.L)
Essentially the same format as RLE. David I. Bell used this format for his large collection dbLifeLib (http://canb.auug.org.au/~dbell/archive/c3.tar.gz). Some patterns in this format mix the Life 1.05 format with RLE.
===========
Time permitting I will next add support for the RLE and Life 1.05 with .rle and .lif extensions (respectively).
For some reason, loading RLE (and RLE-type .L) files crashes the simulator but it seems to work fine on target (tested on Gigabeat F40).
I tested various configurations for some non-standard rule sets and they appear to be working properly. Any feedback would be welcome.
the cause of crash seems to lack of break statement for the case ext_c is b.
also, i think header[30] is a bit small.