Closed RicoP closed 5 years ago
If I break the API, I'll do something like this, but right now osdialog follows https://github.com/VCVRack/Rack, which is waiting on a v1 release. I'll probably forget about this task by tomorrow though.
You can also try something quick and use following macros:
#ifndef OSDIALOG_MALLOC
#define OSDIALOG_MALLOC malloc
#endif
#ifndef OSDIALOG_FREE
#define OSDIALOG_FREE free
#endif
#ifndef OSDIALOG_STRDUP
#define OSDIALOG_STRDUP strdup
#endif
That's reasonable enough. 7bb7dd7688868aef593de2bcd468bed92c71ab00
I would like to use osdialog_file in my game engine but I would like to be able to use my custom allocator.
osdialog_file uses both free and strdup which makes my life a bit harder. Would it be possible to change the signature of osdialog_file to be
So we can use our own buffer, without worriing about freeing the buffer space.