Fixed Megdadrive/Genesis platform ID, cleaned up code for AdvMAME functions