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)
downloadrockbox-9bcd2a999806e5b71325d399a25b7af8c17d0b52.tar.gz
rockbox-9bcd2a999806e5b71325d399a25b7af8c17d0b52.zip
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)
189 stringbuffer = buf; 189 stringbuffer = buf;
190 pointers = (char **)(buf + buf_size - sizeof(int)); 190 pointers = (char **)(buf + buf_size - sizeof(int));
191 191
192 rb->lcd_clear_display();
193 rb->splash(0, true, "Loading...");
194
192 rc = read_buffer(0); 195 rc = read_buffer(0);
193 if(rc == 0) { 196 if(rc == 0) {
197 rb->lcd_clear_display();
198 rb->splash(0, true, "Sorting...");
199 sort_buffer();
200
201 rb->lcd_clear_display();
202 rb->splash(0, true, "Writing...");
194 sort_buffer(); 203 sort_buffer();
204
195 rc = write_file(); 205 rc = write_file();
196 if(rc < 0) { 206 if(rc < 0) {
207 rb->lcd_clear_display();
197 rb->splash(HZ, true, "Can't write file: %d", rc); 208 rb->splash(HZ, true, "Can't write file: %d", rc);
209 } else {
210 rb->lcd_clear_display();
211 rb->splash(HZ, true, "Done");
198 } 212 }
199 } else { 213 } else {
200 if(rc < 0) 214 if(rc < 0) {
215 rb->lcd_clear_display();
201 rb->splash(HZ, true, "Can't read file: %d", rc); 216 rb->splash(HZ, true, "Can't read file: %d", rc);
202 else 217 } else {
218 rb->lcd_clear_display();
203 rb->splash(HZ, true, "The file is too big"); 219 rb->splash(HZ, true, "The file is too big");
220 }
204 } 221 }
205 222
206 return PLUGIN_OK; 223 return PLUGIN_OK;