Use command line filename if specified

This commit is contained in:
Michaelangel007 2018-04-19 09:01:32 -07:00
parent d5dcfbc528
commit 6a87e4269e

View File

@ -21,11 +21,14 @@
// Main
int main()
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];
if( in )
{
size_t size = FileSize( in );