Hmmm... that'll work for now.
Though, in the future, I think I'd like some sort of configuration validity checking so that we're not displaying non-working games. However, this isn't a high priority.
---Brett
-----Original Message-----
From: Erik Vos <eri...@hc...>
Sent: Apr 26, 2005 11:38 AM
To: rai...@li...
Subject: RE: [Rails-devel] Selecting a game
> I've just noticed something...
>
> We don't currently have a method of showing which games are
> available in order to allow a user to select which game
> they'd like to play.
>
> Is it possible to scan the data directory, check the Game.xml
> files, and return a list of game names?
See java.io.File.
If a file is a directory, list() returns the names of its contents.
Erik.
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Rails-devel mailing list
Rai...@li...
https://lists.sourceforge.net/lists/listinfo/rails-devel
|