ifs_layeredfs icon indicating copy to clipboard operation
ifs_layeredfs copied to clipboard

Texturelist generates duplicated data_mods/{mod_name} path

Open AllanCat opened this issue 4 years ago • 0 comments

After demangling the path is data_mods/{mod_name}/{.ifs path}, when building texturelist, .ifs is replaced with _ifs and added available_mod's folder name, which causes "data_mods/{mod_name}/data_mods/{mod_name}/xxxx_ifs" path and missed hit.

This is related to the following issue: When high priority _ifs and low priority .ifs both exists, ifs hook will pick low priority .ifs first For example, 99/graphic/mdata.ifs 98/graphic/mdata_ifs/blah.png //this will not hit

My workaround right now is to remove the duplicated data_mods/{mod_name} in parse_texturelist() (as commit below) https://github.com/AllanCat/ifs_layeredfs/commit/ab07405688ff87eade8ae6a22f2d56642fbdbf6a But that seems not the right way to fix this issue.

AllanCat avatar Nov 27 '20 11:11 AllanCat