Exemple #1
0
void get_rom_sample_path (int argc, char **argv, int game_index)
{
	int i;

	alternate_name = 0;
	mame_argc = argc;
	mame_argv = argv;
	game = game_index;
    
	/* no jailbreak - Les Bird
	rompath    = get_string ("directory", "rompath",    NULL, IMAMEBASEPATH "/roms");
	samplepath = get_string ("directory", "samplepath", NULL, IMAMEBASEPATH "/samples");
	 */
	// no jailbreak - Les Bird
	rompath = get_iOS_RomPath();
	samplepath = get_iOS_SamplePath();
	//
	
	/* handle '-romdir' hack. We should get rid of this BW */
	alternate_name = 0;
	for (i = 1; i < argc; i++)
	{
		if (strcasecmp (argv[i], "-romdir") == 0)
		{
			i++;
			if (i < argc) alternate_name = argv[i];
		}
	}

	/* decompose paths into components (handled by fileio.c) */
	decompose_rom_sample_path (rompath, samplepath);
}
Exemple #2
0
void get_rom_sample_path (int argc, char **argv, int game_index)
{
	int i;

	alternate_name = 0;
	mame_argc = argc;
	mame_argv = argv;
	game = game_index;

	rompath    = get_string ("directory", "rompath",    NULL, "/var/mobile/Media/ROMs/iMAME4all/.;/var/mobile/Media/ROMs/iMAME4all/roms");
	samplepath = get_string ("directory", "samplepath", NULL, "/var/mobile/Media/ROMs/iMAME4all/.;/var/mobile/Media/ROMs/iMAME4all/samples");

	/* handle '-romdir' hack. We should get rid of this BW */
	alternate_name = 0;
	for (i = 1; i < argc; i++)
	{
		if (strcasecmp (argv[i], "-romdir") == 0)
		{
			i++;
			if (i < argc) alternate_name = argv[i];
		}
	}

	/* decompose paths into components (handled by fileio.c) */
	decompose_rom_sample_path (rompath, samplepath);
}
Exemple #3
0
void get_rom_sample_path (int argc, char **argv, int game_index)
{
	int i;

	alternate_name = 0;
	mame_argc = argc;
	mame_argv = argv;
	game = game_index;
    
	//rompath    = get_string ("directory", "rompath",    NULL, IMAMEBASEPATH "/roms");
    strcpy(romPathBuffer, get_documents_path("."));
    rompath = romPathBuffer;
	//samplepath = get_string ("directory", "samplepath", NULL, IMAMEBASEPATH "/samples");
    strcpy(samplePathBuffer, get_resource_path("samples"));
    samplepath = samplePathBuffer;
    
	/* handle '-romdir' hack. We should get rid of this BW */
	alternate_name = 0;
	for (i = 1; i < argc; i++)
	{
		if (strcasecmp (argv[i], "-romdir") == 0)
		{
			i++;
			if (i < argc) alternate_name = argv[i];
		}
	}

	/* decompose paths into components (handled by fileio.c) */
	decompose_rom_sample_path (rompath, samplepath);
}