|
Rockbox mail archiveSubject: Question on Config block/user_settingsQuestion on Config block/user_settings
From: c s <rb_dev_at_yahoo.com>
Date: Thu, 24 Apr 2003 17:03:02 -0700 (PDT) For 1 bit boolean settings in the config block, when the config block is loaded into the user_settings struct, must the bit be shifted to the LSB of the bool user_settings variable or is the only requirement that the value of a bool variable be zero OR non-zero (as opposed to zero OR one). Whichever is the case, we have to make the same assumption when saving to the config block as we do when doing a settings load, however the caption_backlight bit is left in the 2’s place when loaded from the config block but when it is saved to the config block it is shifted left one bit as if it was in the LSB of caption_backlight. Is there an error in the settings code or am I missing something? ===== Craig rb_dev_at_yahoo.com __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com Received on 2003-04-25 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |