public static int get_int(String section, String option, String shortcut, int def) 
    {
        Map< String, String> kv = _entries.get(section);
    	int res,i;
    
    	res = def;
    
    	if (ignorecfg==0)
    	{
    /*TODO*///		/* if the option does not exist, create it */
    /*TODO*///		if (get_config_int (section, option, -777) == -777)
    /*TODO*///			set_config_int (section, option, def);
    /*TODO*///
    		/* look into mame.cfg, [section] */
                if( kv != null ) res = Integer.parseInt( kv.get( option ));
    /*TODO*///
    /*TODO*///		/* look into mame.cfg, [gamename] */
    /*TODO*///		res = get_config_int ((char *)drivers[game]->name, option, res);
    	}
    /*TODO*///
    /*TODO*///	/* get it from the commandline */
    /*TODO*///	for (i = 1; i < mame_argc; i++)
    /*TODO*///	{
    /*TODO*///		if (mame_argv[i][0] != '-')
    /*TODO*///			continue;
    /*TODO*///		if ((stricmp(&mame_argv[i][1], option) == 0) ||
    /*TODO*///			(shortcut && (stricmp(&mame_argv[i][1], shortcut ) == 0)))
    /*TODO*///		{
    /*TODO*///			i++;
    /*TODO*///			if (i < mame_argc) res = atoi (mame_argv[i]);
    /*TODO*///		}
    /*TODO*///	}
    	return res;
    }

    /*TODO*///static float get_float (char *section, char *option, char *shortcut, float def)
    /*TODO*///{
    /*TODO*///	int i;
    /*TODO*///	float res;
    /*TODO*///
    /*TODO*///	res = def;
    /*TODO*///
    /*TODO*///	if (!ignorecfg)
    /*TODO*///	{
    /*TODO*///		/* if the option does not exist, create it */
    /*TODO*///		if (get_config_float (section, option, 9999.0) == 9999.0)
    /*TODO*///			set_config_float (section, option, def);
    /*TODO*///
    /*TODO*///		/* look into mame.cfg, [section] */
    /*TODO*///		res = get_config_float (section, option, def);
    /*TODO*///
    /*TODO*///		/* look into mame.cfg, [gamename] */
    /*TODO*///		res = get_config_float ((char *)drivers[game]->name, option, res);
    /*TODO*///	}
    /*TODO*///
    /*TODO*///	/* get it from the commandline */
    /*TODO*///	for (i = 1; i < mame_argc; i++)
    /*TODO*///	{
    /*TODO*///		if (mame_argv[i][0] != '-')
    /*TODO*///			continue;
    /*TODO*///		if ((stricmp(&mame_argv[i][1], option) == 0) ||
    /*TODO*///			(shortcut && (stricmp(&mame_argv[i][1], shortcut ) == 0)))
    /*TODO*///		{
    /*TODO*///			i++;
    /*TODO*///			if (i < mame_argc) res = atof (mame_argv[i]);
    /*TODO*///		}
    /*TODO*///	}
    /*TODO*///	return res;
    /*TODO*///}