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 473 - Built In Directory tools -- addition.
Summary: Built In Directory tools -- addition.
Status: RESOLVED WONTFIX
Alias: None
Product: SDL
Classification: Unclassified
Component: file (show other bugs)
Version: don't know
Hardware: All All
: P2 API change
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-31 16:04 UTC by Kenney Phillis Jr
Modified: 2009-09-20 22:51 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 Kenney Phillis Jr 2007-07-31 16:04:01 UTC
Pretty much add a few new functions that help with listing/getting directory paths.

//Translators for Pre Mac OSX
char*  sdl_win32tomac(char* file);
char*  sdl_unixtomac(char* file);
// unix path conversion.
char*  sdl_mactoUnix(char* file);
char*  sdl_win32tounix(char* file);
// win32 path conversion.
char*  sdl_UnixtoWin32(char* file);
char*  sdl_MacToWin32(char* file);

//file listing functions.
char** sdl_listfiles(char* directory); // list of all files in a directory.
char** sdl_listfiles(char* directory, char* ext); // list of all files in a directory of a specified extension.
char** sdl_listdirectories(char* directory);// list directories in specified path.
Comment 1 Sam Lantinga 2009-09-20 22:51:52 UTC
We'll keep this in mind for SDL 1.3, thanks!