Example #1
0
bool emu_options::parse_command_line(int argc, char *argv[], std::string &error_string)
{
	// parse as normal
	core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string);
	bool result = parse_slot_devices(argc, argv, error_string);
	update_cached_options();
	return result;
}
Example #2
0
bool emu_options::parse_command_line(int argc, char *argv[], astring &error_string)
{
	// remember the original system name
	astring old_system_name(system_name());

	// parse as normal
	bool result = core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string);

	// if the system name changed, fix up the device options
	if (old_system_name != system_name())
	{
		// remove any existing device options
		result = parse_slot_devices(argc, argv, error_string, NULL, NULL);
	}
	return result;
}
Example #3
0
bool emu_options::parse_command_line(int argc, char *argv[], astring &error_string)
{
	// parse as normal
	core_options::parse_command_line(argc, argv, OPTION_PRIORITY_CMDLINE, error_string);
	return parse_slot_devices(argc, argv, error_string, NULL, NULL);
}