summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-11-17 12:13:33 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-11-17 12:13:33 +0000
commit9bcd2a999806e5b71325d399a25b7af8c17d0b52 (patch)
treefdab7d0299ac35718b52361cc95ebadd50101ecd /apps/plugins
parentf78524bf93b1c29ce5ec122f33c34b3a85745890 (diff)
Better feedback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5414 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/sort.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/apps/plugins/sort.c b/apps/plugins/sort.c
index c8927081e9..9559b25497 100644
--- a/apps/plugins/sort.c
+++ b/apps/plugins/sort.c
@@ -189,18 +189,35 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
stringbuffer = buf;
pointers = (char **)(buf + buf_size - sizeof(int));
+ rb->lcd_clear_display();
+ rb->splash(0, true, "Loading...");
+
rc = read_buffer(0);
if(rc == 0) {
+ rb->lcd_clear_display();
+ rb->splash(0, true, "Sorting...");
+ sort_buffer();
+
+ rb->lcd_clear_display();
+ rb->splash(0, true, "Writing...");
sort_buffer();
+
rc = write_file();
if(rc < 0) {
+ rb->lcd_clear_display();
rb->splash(HZ, true, "Can't write file: %d", rc);
+ } else {
+ rb->lcd_clear_display();
+ rb->splash(HZ, true, "Done");
}
} else {
- if(rc < 0)
+ if(rc < 0) {
+ rb->lcd_clear_display();
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");
+ }
}
return PLUGIN_OK;