Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: RE: Create UCL out of the bleeding edge build - me wrote a program ;)
From: Mike Holden (rockbox_at_mikeholden.uklinux.net)
Date: 2003-07-19


scott said:
> i agree with tim about renaming to ajbrec.ajz_.

Only trouble I can see with using ajbrec.ajz_ is that Rockbox can't ROLO
that file without renaming it first. We discussed this filename recently,
but it was only today when I tried to ROLO a file of this name that I
realised that Rockbox doesn't recognise the .ajz_ extension, so doesn't
"play" it. Maybe we should add .ajz_ as a recognised extension for
Rockbox?

This simple patch to apps/tree.c adds support for ROLOing .ajz_ files, and
also pre-empts the same issue for Player by adding .mod_ extension. Tested
on FM Recorder, and compiles cleanly for Player.

--- /home/rockbox/develop/clean/apps/tree.c 2003-07-19
11:54:26.000000000 +0100
+++ tree.c 2003-07-19 20:22:06.000000000 +0100
@@ -301,9 +301,11 @@
 #ifdef HAVE_RECORDER_KEYPAD
             else if (!strcasecmp(&entry->d_name[len-4], ".fnt"))
                 dptr->attr |= TREE_ATTR_FONT;
- else if (!strcasecmp(&entry->d_name[len-4], ".ajz"))
+ else if (!strcasecmp(&entry->d_name[len-4], ".ajz") ||
+ !strcasecmp(&entry->d_name[len-5], ".ajz_"))
 #else
- else if (!strcasecmp(&entry->d_name[len-4], ".mod"))
+ else if (!strcasecmp(&entry->d_name[len-4], ".mod") ||
+ !strcasecmp(&entry->d_name[len-5], ".mod_"))
 #endif
                 dptr->attr |= TREE_ATTR_MOD;
             else if (!strcasecmp(&entry->d_name[len-5], ".rock"))

-- 
Mike Holden

Rockbox page: http://www.mikeholden.org/~rockbox



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa