mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-15 11:07:38 -04:00
Removed annoying splash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15746 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8405fc9eee
commit
e2e287d80e
1 changed files with 2 additions and 7 deletions
|
@ -1086,18 +1086,13 @@ static void viewer_load_settings(void) /* same name as global, but not the same
|
|||
|
||||
/* read settings file */
|
||||
settings_fd=rb->open(SETTINGS_FILE, O_RDONLY);
|
||||
if ((settings_fd < 0) || (rb->filesize(settings_fd) != sizeof(struct preferences)))
|
||||
{
|
||||
rb->splash(HZ*2, "No Valid Settings File");
|
||||
}
|
||||
else
|
||||
if (settings_fd && (rb->filesize(settings_fd) == sizeof(struct preferences)))
|
||||
{
|
||||
rb->read(settings_fd, &prefs, sizeof(struct preferences));
|
||||
rb->close(settings_fd);
|
||||
rb->memcpy(&old_prefs, &prefs, sizeof(struct preferences));
|
||||
}
|
||||
|
||||
rb->memcpy(&old_prefs, &prefs, sizeof(struct preferences));
|
||||
|
||||
data = (struct bookmark_file_data*)buffer; /* grab the text buffer */
|
||||
data->bookmarked_files_count = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue