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: Loading settings in CFG

Re: Loading settings in CFG

From: Fred -- Speed Up -- <speedup_at_free.fr>
Date: Thu, 13 Feb 2003 21:26:27 +0100

I don't know if you're french (your name sound like that), if so just aswer
me in french ;))
I tried to add the bookmarking and fading patch settings this way (code
added at line 1069, after else if (!strcasecmp(name, "poweroff"))) :

        else if (!strcasecmp(name, "fade"))
            {
                if( !test_int(value, 0, 0, 1,
&global_settings.fade_on_stop))
                    global_settings.fade_on_stop=1;
            }
        else if (!strcasecmp(name, "autobookmark"))
            {
                if( !test_int(value, 0, 0, 1,
&global_settings.autocreatebookmark))
    {
     if (global_settings.autocreatebookmark == 0)
      global_settings.autocreatebookmark = AUTOCREATEBOOKMARK_NO;
     else
      global_settings.autocreatebookmark = AUTOCREATEBOOKMARK_YES;
    }
    else global_settings.autocreatebookmark = AUTOCREATEBOOKMARK_NO;
            }

But it didn't worked ... can you help me correcting the code so that it
would load the right settings ?

Fred

----- Original Message -----
From: "Christian D" <QInter_at_gmx.net>
Newsgroups: gmane.comp.systems.archos.rockbox.general
Sent: Thursday, February 13, 2003 12:34 PM
Subject: Re: Loading settings in CFG


> > I'll integrate it into my package tonight, thank you Christian ;)
> Thank you! I'm really happy that you like it.
>
> >
> > PS : could you make some more general settings, for the bookmarking or
> > fading patch for instance ?
> >
> Yes, I'll do that. I already had the intention to merge the bookmarking,
> fade and settings load features in one patch and to add some more
settings. So
> stay tuned...
>
> Christian
Received on 2003-02-13

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