1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jörg Hohensohn 2003-04-10 21:01:22 +00:00
parent 780595b6c4
commit 9c1f29f9fb

View file

@ -333,15 +333,29 @@ int onplay(char* file, int attr)
selected_file = file; selected_file = file;
if ((mpeg_status() & MPEG_STATUS_PLAY) && (attr & TREE_ATTR_MPA)) 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)) 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) 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 */ /* DIY menu handling, since we want to exit after selection */
m = menu_init( menu, i ); m = menu_init( menu, i );