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 ;)

RE: Create UCL out of the bleeding edge build - me wrote a program ;)

From: Mike Holden <rockbox_at_mikeholden.uklinux.net>
Date: Sat, 19 Jul 2003 20:33:47 +0100 (BST)

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
_at__at_ -301,9 +301,11 _at__at_
 #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
Received on 2003-07-19

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy