forked from len0rd/rockbox
text_viewer: callback functions are changed to the function that returns int value.
And the text viewer quits when the problem occurs by callback functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27172 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7195f3a30c
commit
07d03729ff
13 changed files with 56 additions and 25 deletions
|
|
@ -417,7 +417,7 @@ bool tv_save_global_settings(const struct tv_preferences *prefs)
|
|||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
void tv_load_settings(const unsigned char *file_name)
|
||||
bool tv_load_settings(const unsigned char *file_name)
|
||||
{
|
||||
unsigned char buf[MAX_PATH+2];
|
||||
unsigned int fcount;
|
||||
|
|
@ -470,7 +470,7 @@ void tv_load_settings(const unsigned char *file_name)
|
|||
tv_set_default_preferences(&prefs);
|
||||
}
|
||||
rb->strlcpy(prefs.file_name, file_name, MAX_PATH);
|
||||
tv_set_preferences(&prefs);
|
||||
return tv_set_preferences(&prefs);
|
||||
}
|
||||
|
||||
static bool tv_copy_settings(int sfd, int dfd, int size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue