public static String get_string(String section, String option, String shortcut, String def) {
        Map< String, String> kv = _entries.get(section);
        String res=def;
        
    	if (ignorecfg==0)
    	{
    /*TODO*///		/* if the option does not exist, create it */
    /*TODO*///		if (get_config_string (section, option, "#") == "#" )
    /*TODO*///			set_config_string (section, option, def);
    /*TODO*///
    		/* look into mame.cfg, [section] */
                if( kv != null ) res = kv.get( option );
    /*TODO*///
    /*TODO*///		/* look into mame.cfg, [gamename] */
    /*TODO*///		res = get_config_string((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*///
    /*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 = mame_argv[i];
    /*TODO*///		}
    /*TODO*///	}
    	return res;
    }
    /*TODO*///
    /*TODO*///void get_rom_sample_path (int argc, char **argv, int game_index)
    /*TODO*///{
    /*TODO*///	int i;
    /*TODO*///
    /*TODO*///	alternate_name = 0;
    /*TODO*///	mame_argc = argc;
    /*TODO*///	mame_argv = argv;
    /*TODO*///	game = game_index;
    /*TODO*///
    /*TODO*///	rompath    = get_string ("directory", "rompath",    NULL, ".;ROMS");
    /*TODO*///	samplepath = get_string ("directory", "samplepath", NULL, ".;SAMPLES");
    /*TODO*///
    /*TODO*///	/* handle '-romdir' hack. We should get rid of this BW */
    /*TODO*///	alternate_name = 0;
    /*TODO*///	for (i = 1; i < argc; i++)
    /*TODO*///	{
    /*TODO*///		if (stricmp (argv[i], "-romdir") == 0)
    /*TODO*///		{
    /*TODO*///			i++;
    /*TODO*///			if (i < argc) alternate_name = argv[i];
    /*TODO*///		}
    /*TODO*///	}
    /*TODO*///
    /*TODO*///	/* decompose paths into components (handled by fileio.c) */
    /*TODO*///	decompose_rom_sample_path (rompath, samplepath);
    /*TODO*///}
    /*TODO*///
    /*TODO*////* for playback of .inp files */
    /*TODO*///void init_inpdir(void)
    /*TODO*///{
    /*TODO*///    inpdir = get_string ("directory", "inp",     NULL, "INP");
    /*TODO*///}