summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-04-10 21:01:22 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-04-10 21:01:22 +0000
commit9c1f29f9fb7438b0d669e541291f5df674ef45fe (patch)
treeb3613fb78cec87665a4f54c7b93d430e2b82afb2 /apps
parent780595b6c4c07000e99bb799bf011b3fcd657d14 (diff)
downloadrockbox-9c1f29f9fb7438b0d669e541291f5df674ef45fe.tar.gz
rockbox-9c1f29f9fb7438b0d669e541291f5df674ef45fe.zip
cosmetics for MSVC (Win32 uisimulator): except in declarations, please dont assign structs like:
my_struct = { 1, 2, 3 }; MSVC won't take it, sorry Linus git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3527 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/onplay.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 54aefb8e92..fb9d940bf3 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -333,15 +333,29 @@ int onplay(char* file, int attr)
333 selected_file = file; 333 selected_file = file;
334 334
335 if ((mpeg_status() & MPEG_STATUS_PLAY) && (attr & TREE_ATTR_MPA)) 335 if ((mpeg_status() & MPEG_STATUS_PLAY) && (attr & TREE_ATTR_MPA))
336 menu[i++] = (struct menu_items) { str(LANG_QUEUE), queue_file }; 336 {
337 menu[i].desc = str(LANG_QUEUE);
338 menu[i].function = queue_file;
339 i++;
340 }
337 341
338 menu[i++] = (struct menu_items) { str(LANG_RENAME), rename_file }; 342 menu[i].desc = str(LANG_RENAME);
343 menu[i].function = rename_file;
344 i++;
339 345
340 if (!(attr & ATTR_DIRECTORY)) 346 if (!(attr & ATTR_DIRECTORY))
341 menu[i++] = (struct menu_items) { str(LANG_DELETE), delete_file }; 347 {
348 menu[i].desc = str(LANG_DELETE);
349 menu[i].function = delete_file;
350 i++;
351 }
342 352
343 if (attr & TREE_ATTR_MPA) 353 if (attr & TREE_ATTR_MPA)
344 menu[i++] = (struct menu_items) { "VBRfix", vbr_fix }; 354 {
355 menu[i].desc = "VBRfix";
356 menu[i].function = vbr_fix;
357 i++;
358 }
345 359
346 /* DIY menu handling, since we want to exit after selection */ 360 /* DIY menu handling, since we want to exit after selection */
347 m = menu_init( menu, i ); 361 m = menu_init( menu, i );