Re: R: [Plib-devel] Update on 3ds loader
Brought to you by:
sjbaker
From: <Va...@t-...> - 2000-04-08 11:26:57
|
Steve Baker wrote: > > > Couldn't the loader convert each filename to (say) uppercase internally? > > 2) If you can't get an exact match, THEN you'll have to search the current > directory looking for files whose names (when converted to uppercase) > match the given filename (when converted to uppercase). Whether you > pick the first match or flag an error if there are multiple possible > matches is an interesting question. Thake the first one and throw a warning IMHO. > Since searching the directory that way is painful to do in a portable > manner, this isn't going to be very nice to code, however, you don't > know whether IMAGE.BMP is really stored as IMAGE.BMP, image.bmp, Image.bmp > or iMaGe.Bmp - so there is no way to find the right filename to 'fopen' > without doing a search. We *need* a protable file I/O library that also can handle directories! Then we could have something like f = fuOpen( "image.bmp", FU_IGNORE_CASE | FU_READ | FU_BINARY ); CU, Christian |