Missing textures for Raising The Bar: Redux on Linux #82
Open
Description
Some of the textures will be missing because of case mismatch between material names in BSP and on filesystem.
E.g. BUILDING_TEMPLATE/BUILDING_TRAINSTATION_TRUSS_TEMPLATE001F_BETA
vs materials/building_template/Building_Trainstation_Truss_Template001f_beta.vmt
on disk.
FilesystemCollection
needs to be able to open files by case insensitive names. However, it's not straightforward. Loading resources by name needs to be done as follows:
- Try to load with exact name through entire chain
- Try to load in "fallback" mode with case insensitive checks
Maybe add special something like dir_ncase
config option for such dirs explicitly to simplify?
Finding files insensitively is dumb: opendir()
, list all files, compare insensitively. Or make a tolower()
hashmap, or whatever.