mirror of
https://github.com/Michaelangel007/apple2_gumball.git
synced 2024-12-21 17:30:09 +00:00
Use command line filename if specified
This commit is contained in:
parent
d5dcfbc528
commit
6a87e4269e
@ -21,11 +21,14 @@
|
|||||||
|
|
||||||
// Main
|
// Main
|
||||||
|
|
||||||
int main()
|
int main( const int nArg, const char *aArg[] )
|
||||||
{
|
{
|
||||||
const char *name = "gumball.fragment.1.1800";
|
const char *name = "gumball.fragment.1.1800";
|
||||||
FILE *in = fopen( name, "rb" );
|
FILE *in = fopen( name, "rb" );
|
||||||
|
|
||||||
|
if( nArg > 1 )
|
||||||
|
name = aArg[1];
|
||||||
|
|
||||||
if( in )
|
if( in )
|
||||||
{
|
{
|
||||||
size_t size = FileSize( in );
|
size_t size = FileSize( in );
|
||||||
|
Loading…
Reference in New Issue
Block a user