diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-04-10 21:01:22 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-04-10 21:01:22 +0000 |
| commit | 9c1f29f9fb7438b0d669e541291f5df674ef45fe (patch) | |
| tree | b3613fb78cec87665a4f54c7b93d430e2b82afb2 /apps | |
| parent | 780595b6c4c07000e99bb799bf011b3fcd657d14 (diff) | |
| download | rockbox-9c1f29f9fb7438b0d669e541291f5df674ef45fe.zip rockbox-9c1f29f9fb7438b0d669e541291f5df674ef45fe.tar.gz rockbox-9c1f29f9fb7438b0d669e541291f5df674ef45fe.tar.bz2 rockbox-9c1f29f9fb7438b0d669e541291f5df674ef45fe.tar.xz | |
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.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 54aefb8..fb9d940 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -333,15 +333,29 @@ int onplay(char* file, int attr) selected_file = file; if ((mpeg_status() & MPEG_STATUS_PLAY) && (attr & TREE_ATTR_MPA)) - menu[i++] = (struct menu_items) { str(LANG_QUEUE), queue_file }; + { + menu[i].desc = str(LANG_QUEUE); + menu[i].function = queue_file; + i++; + } - menu[i++] = (struct menu_items) { str(LANG_RENAME), rename_file }; + menu[i].desc = str(LANG_RENAME); + menu[i].function = rename_file; + i++; if (!(attr & ATTR_DIRECTORY)) - menu[i++] = (struct menu_items) { str(LANG_DELETE), delete_file }; + { + menu[i].desc = str(LANG_DELETE); + menu[i].function = delete_file; + i++; + } if (attr & TREE_ATTR_MPA) - menu[i++] = (struct menu_items) { "VBRfix", vbr_fix }; + { + menu[i].desc = "VBRfix"; + menu[i].function = vbr_fix; + i++; + } /* DIY menu handling, since we want to exit after selection */ m = menu_init( menu, i ); |