-// rrrr rggg gggb bbbb\r
-static unsigned short file2color(const char *fname)\r
-{\r
- const char *ext = fname + strlen(fname) - 3;\r
- static const char *rom_exts[] = { "zip", "bin", "smd", "gen", "iso", "cso", "cue" };\r
- static const char *other_exts[] = { "gmv", "pat" };\r
- int i;\r
-\r
- if (ext < fname) ext = fname;\r
- for (i = 0; i < array_size(rom_exts); i++)\r
- if (strcasecmp(ext, rom_exts[i]) == 0) return 0xbdff; // FIXME: mk defines\r
- for (i = 0; i < array_size(other_exts); i++)\r
- if (strcasecmp(ext, other_exts[i]) == 0) return 0xaff5;\r
- return 0xffff;\r
-}\r
-\r