Merge pull request #6543 from lioncash/cast HiresTextures: Remove unnecessary pointer casts in GenBaseName() + minor associated cleanup