There's a huge bug in HBMAMEUI that has shown it's pesky head again. The hbmame.ini in the ini directory does not save users' settings after closing the emulator... nor does it recognize any modified settings if you modify the file manually. It also clears all modified settings once the emulator closes.
(The hbmameui.ini file in the root directory works fine.)