Another thing done in MESSUI is fixing various problems with saving settings to mess.ini and so on. I was able to get rid of DIRECTORIES.INI from this. This stuff is also going to be ported to MAMEUI late next week.
If you're interested.
It should be obvious I'm interested. The DIRECTORIES.INI is a gross hack I implemented in MAMEUI when there was a serious breakage with the options core. If you fixed the problem in a right way, it will be in my build as well. I look forward for your code.
On a side note, if you're in the mood to do it, a recent commit by Vas Crabb eliminated every difference between FREE(variable)
in the core. So I replaced in my UI code all instances of OSD_FREE with standard C function FREE and all is working as usual. No memory leaks detected. The same can be done for OSD_MALLOC
that can be replaced with MALLOC
and in datamap.c
file this portion of code is no more needed after the changes above:
you can simply use this:
// FIXME: realloc is dangerous!
I also get rid of in my code of a lot of std::string
usage in favour of standard C functions sprintf/snprintf
where it possible.
Less dependencies from the core, easier to be mantained in the future.