tmx icon indicating copy to clipboard operation
tmx copied to clipboard

Add XML custom loader overrides

Open holywyvern opened this issue 6 years ago • 2 comments

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.

holywyvern avatar Dec 28 '19 03:12 holywyvern

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.

baylej avatar Jan 14 '21 22:01 baylej

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.

holywyvern avatar Jan 15 '21 17:01 holywyvern