[Scummvm-devel] Mixed case filenames

Jonathan Gray jsg at goblin.cx
Sun Oct 16 05:04:56 CEST 2005


On Sun, Oct 16, 2005 at 08:08:35PM +1000, Travis Howell wrote:
> We currently check the following types of filenames for games:
> Filename.exe
> filename.ext
> FILENAME.EXE
> 
> But games from Humongous Entertainment often use a mixed case for the
> filenames, with more types:
> FILENAME.ext
> Filename.Ext
> FILENAME.Ext
> filename.EXT
> Filename.EXT
> 
> What would be the best way to handle mixed case filenames of these types, in
> an efficient and portable way? could we consider using scumm_stricmp() to 
> handle
> filenames or is there a better method?

Well if you ask the file class for a mixed case filename it will
try upper and lower case equivalents in addition.




More information about the Scummvm-devel mailing list