forked from len0rd/rockbox
Better feedback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5414 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f78524bf93
commit
9bcd2a9998
1 changed files with 19 additions and 2 deletions
|
@ -189,18 +189,35 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
stringbuffer = buf;
|
stringbuffer = buf;
|
||||||
pointers = (char **)(buf + buf_size - sizeof(int));
|
pointers = (char **)(buf + buf_size - sizeof(int));
|
||||||
|
|
||||||
|
rb->lcd_clear_display();
|
||||||
|
rb->splash(0, true, "Loading...");
|
||||||
|
|
||||||
rc = read_buffer(0);
|
rc = read_buffer(0);
|
||||||
if(rc == 0) {
|
if(rc == 0) {
|
||||||
|
rb->lcd_clear_display();
|
||||||
|
rb->splash(0, true, "Sorting...");
|
||||||
sort_buffer();
|
sort_buffer();
|
||||||
|
|
||||||
|
rb->lcd_clear_display();
|
||||||
|
rb->splash(0, true, "Writing...");
|
||||||
|
sort_buffer();
|
||||||
|
|
||||||
rc = write_file();
|
rc = write_file();
|
||||||
if(rc < 0) {
|
if(rc < 0) {
|
||||||
|
rb->lcd_clear_display();
|
||||||
rb->splash(HZ, true, "Can't write file: %d", rc);
|
rb->splash(HZ, true, "Can't write file: %d", rc);
|
||||||
|
} else {
|
||||||
|
rb->lcd_clear_display();
|
||||||
|
rb->splash(HZ, true, "Done");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(rc < 0)
|
if(rc < 0) {
|
||||||
|
rb->lcd_clear_display();
|
||||||
rb->splash(HZ, true, "Can't read file: %d", rc);
|
rb->splash(HZ, true, "Can't read file: %d", rc);
|
||||||
else
|
} else {
|
||||||
|
rb->lcd_clear_display();
|
||||||
rb->splash(HZ, true, "The file is too big");
|
rb->splash(HZ, true, "The file is too big");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return PLUGIN_OK;
|
return PLUGIN_OK;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue