maFileListStart / maFileListNext / etc.

1 post / 0 new
Last post
Viras
viras@users.sourceforge.net's picture
Offline
Joined: 10 Aug 2010
Posts:
maFileListStart / maFileListNext / etc.

On what platforms does the filesystem api work yet? I tried to run the following basic example:

MAHandle dirHandler = maFileListStart( "", "" );

while( maFileListNext( dirHandler, fileEntry, 50 ) > 0 ) {
	Label *entry = new Label( 0, 0, this->trackList->getWidth(), 24, this->trackList, fileEntry, 0xFFFFFF, new Font(FONT_VERA18) );
}

maFileListClose( dirHandler );

(trackList is a ListBox)

However only one entry, with the filename "/" is added, nothing more. Any explaination for that behaviour? This happens both on the emulator as well as on a windows mobile test device!