|
|
Rockbox mail archiveSubject: Re: Question on Config block/user_settingsFrom: Björn Stenberg (bjorn_at_haxx.se) Date: 2003-04-25
c s wrote:
Yes. True and false is defined as !0 and 0. This is valid for all C code, not just boolean variables.
> Is there an error
Looks good to me:
Save - The caption boolean is converted to bit 1 of byte 0xAE:
config_block[0xae] = (unsigned char)
Load - Bit 1 of byte 0xAE is converted to the caption boolean:
global_settings.caption_backlight = config_block[0xae] & 2;
-- Björn
Page was last modified "Jan 10 2012" The Rockbox Crew |