[DF-2961] Added resurcive reading of "flags.txt" for TexturePacker.
[DF-2961] Code changes after review.