*merge r31136
*NeoGeo driver is rewritten. need check

git-svn-id: https://mameplus.svn.sourceforge.net/svnroot/mameplus/trunk/mamep@5176 e0215e0a-1e64-f442-9f1d-d2f61a7f4648
*misc fix

git-svn-id: https://mameplus.svn.sourceforge.net/svnroot/mameplus/trunk/mamep@5177 e0215e0a-1e64-f442-9f1d-d2f61a7f4648