Fix use command line alt. filename

This commit is contained in:
Michaelangel007 2018-04-19 10:05:59 -07:00
parent 6a87e4269e
commit 18d03aef88

View File

@ -24,10 +24,14 @@
int main( const int nArg, const char *aArg[] )
{
const char *name = "gumball.fragment.1.1800";
FILE *in = fopen( name, "rb" );
if( nArg > 1 )
name = aArg[1];
{
name = aArg[1];
printf( "Filename: %s\n", name );
}
FILE *in = fopen( name, "rb" );
if( in )
{