Generalize function for texture path correction (Fixes #1779)
Rename and move functions for texture path correction
Use ResourceHelpers to replace DDS hacks scattered throughout the code, fix prefix comparision
Merge remote-tracking branch 'miroslavr/master'