Add more option flags

This commit is contained in:
Michaelangel007 2017-11-06 08:51:59 -08:00
parent dd4747cc9d
commit 0942fd0906

View File

@ -209,12 +209,22 @@ void setTimeNow( ProDOS_FileHeader_t *entry )
}
/*
-date=MM/DD/YY
-time=HR:MN[a|p]
-type=BIN
-type=$##
-aux=$####
-access=$##
-aux=$####
-date=MM/DD/YY
-date=DD-MON-YY
-moddate=MM/DD/YY
-moddate=DD-MON-YY
-modtime=HR:MNa
-modtime=HR:MNp
-modtime=HH:MM
-modtime=$####
-time=HR:MNa
-time=HR:MNp
-time=$####
-time=HH:MM
-type=$##
-type=BIN
*/
// @return false if fatel error
// ========================================================================
@ -274,12 +284,33 @@ bool getCopyConfig( ProDOS_FileHeader_t *entry, const char *arg )
entry->date = ProDOS_DateToInt( mon, day, yar );
}
else
if( strncmp( arg, "moddate=", 8 ) == 0 )
{
nLenSuffix = nLenPrefix - 8;
pVal = arg + 8;
printf( "ERROR: Modified Time not yet implemented\n" );
}
else
if( strncmp( arg, "modtime=", 8 ) == 0 )
{
nLenSuffix = nLenPrefix - 8;
pVal = arg + 8;
printf( "ERROR: Modified Time not yet implemented\n" );
}
else
if( strncmp( arg, "time=", 5 ) == 0 )
{
nLenSuffix = nLenPrefix - 5;
pVal = arg + 5;
printf( "ERROR: Create Time not yet implemented\n" );
}
else
if( strncmp( arg, "type=", 5 ) == 0 )