Add XML custom loader overrides
This replaces the xmlReaderForFile and xmlFreeTextReader to use instead tmx custom functions instead.
This allows to use PhysFS or other virtual filesystems without much trouble.
I attempted to copy the style used for tmx_img_load_func and tmx_img_free_func as much as I could.
To override this functions and to keep old headers intact, you should require "tmx_xml.h" first.
Hello, thank you for your contribution.
Sorry for the very late response :fearful:
I do not want to expose anything from libxml2 in libtmx, so I'm not merging it. I have an idea for such use cases and I may implement it some day.
Hello, thank you for your contribution.
Sorry for the very late response 😨
I do not want to expose anything from libxml2 in libtmx, so I'm not merging it. I have an idea for such use cases and I may implement it some day.
Sure, I'll still keep it the branch updated if someone requires this for some reason.