Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Radiant on Mon 03/04/2006 23:21:09

Title: Directory reading function (SOLVED)
Post by: Radiant on Mon 03/04/2006 23:21:09
It would be useful to have a function or functions to enumerate files in a directory. It's ok if it would be limited to the game's directory itself, for security reasons.

The easiest way is probably a "string FindFirstFile (const string filespec)" and "string FindNextFile (void)".

Anyone else who'd find this useful?
Title: Re: Feature request: directory reading function
Post by: Pumaman on Mon 03/04/2006 23:31:03
I'm not sure it's really necessary, when there's the easy workaround of creating a hidden list box and using FillDirList.
Title: Re: Feature request: directory reading function
Post by: Radiant on Tue 04/04/2006 00:13:47
Oh sorry, I was unaware it was possible to fill those with anything other than saved games.