We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2234 - Need a RWops-like way to get Directory listings
Summary: Need a RWops-like way to get Directory listings
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: file (show other bugs)
Version: HG 2.1
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-14 05:05 UTC by Mike Kasprzak
Modified: 2017-08-15 04:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kasprzak 2013-11-14 05:05:52 UTC
This is mainly necessary for Android.

The SDL_RWFromXX (RWops) family of function can be used to read files stored in an Android APK file. The APK is like (is) as ZIP file though. Typical directory listing functions are of no use here. SDL_GetBasePath() is also not helpful here.


Some Starting Points:

On Linux/Mac(?) you use opendir, dirent* types, readdir, and closedir.

On Windows you use _findfirst (with *.*), _finddata_t types, _findnext, and _findclose.
http://msdn.microsoft.com/en-us/library/kda16keh.aspx

Not sure about WinRT, but it's probably different.
Comment 1 Sam Lantinga 2017-08-15 04:44:32 UTC
Yes please!