From 0942fd0906f6dc80a9ddba148d869631f907d6fd Mon Sep 17 00:00:00 2001 From: Michaelangel007 Date: Mon, 6 Nov 2017 08:51:59 -0800 Subject: [PATCH] Add more option flags --- prodos.cpp | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/prodos.cpp b/prodos.cpp index 6cf3f5f..95dd1b6 100644 --- a/prodos.cpp +++ b/prodos.cpp @@ -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 )