+ char *ext = strrchr(scratch, '.');
+ if(strcmp(ext, ".zlb") == 0 ||
+ strcmp(ext, ".zblorb") == 0 ||
+ strcmp(ext, ".glb") == 0 ||
+ strcmp(ext, ".gblorb") == 0 ||
+ strcmp(ext, ".blorb") == 0 ||
+ strcmp(ext, ".blb") == 0)
+ {
+ g_object_set(glk, "graphics-file", NULL, NULL);
+ return;
+ }
+ *ext = '\0';