update the variable patch MAME automatically