View | Details | Raw Unified
Collapse All | Expand All

(-) zsnes/src/linux/zloaderw.c (-8 / +7 lines)
 Lines 336-350    Link Here 
	}
	}
	/* execute rom filename: file.x */
	/* execute rom filename: file.x */
	if  (optopt == '?')
	/* getopt permutates argv until all non options are at the end of argv.	*/
	/* since we only expect one non option, it should be the last argument.	*/
	if ( optind == argc - 1 && argv[optind] != NULL)
	{
	{
		if (argv[optind] != NULL)
		fvar=&fname;
		{
		fvar[0] = strlen(argv[optind]);
			fvar=&fname;
		strncpy(&fvar[1], argv[optind],127);
			fvar[0] = strlen(argv[optind]);
		makeextension();
			strncpy(&fvar[1], argv[optind],127);
			makeextension();
		}
	}
	}
	zstart();
	zstart();