might want to try some windows/linux directory searching stuff for files
with extension of *.mp3 in specific folders

see a thread I contributed to here quite a while back :

http://forums.gamedesign.net/viewtopic.php?t=6237&start=0&postdays=0&postorder=asc&highlight=

I did it (taken from botman's bot code) to look for .mdl files and
altered it a bit. You'd be looking for .mp3 files.

British_Bomber wrote:

This isn't a Half Life specific question, but perhaps some of you may
have done something similar to what I am trying to acheive in HL2.  I
am using FMOD in an attempt to implement a VGUI based ingame mp3
player, what I want to do is load files from a specific folder, say
media/mp3, however I dont want to have to force the user to create a
play list or give the names of their files specifically.  What I would
like to do is just pull all, or even just the first say 25 .mp3 files
in that folder and pop them into a linked list that has just the
acctual name of the folder in it.

I guess the short question is, in the HL2 SDK what would be the best
way to get a file's name by only looking at it's extension?


Cheers

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders







--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.9 - Release Date: 13/04/2005


_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to