mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2024-12-27 05:32:56 +00:00
Add access and type to _META
This commit is contained in:
parent
7fe028980b
commit
8538c68c1b
@ -219,7 +219,7 @@ void setTimeNow( ProDOS_FileHeader_t *entry )
|
||||
}
|
||||
|
||||
/*
|
||||
TODO: Sync these up with <file>._META
|
||||
TODO: Sync these up with <file>._META ProDOS_FileExtract() and getCopyConfig()
|
||||
|
||||
-access=$##
|
||||
-aux=$####
|
||||
@ -237,6 +237,9 @@ void setTimeNow( ProDOS_FileHeader_t *entry )
|
||||
-time=HH:MM
|
||||
-type=$##
|
||||
-type=BIN
|
||||
|
||||
-version=$##
|
||||
-minver=$##
|
||||
*/
|
||||
// @return false if fatel error
|
||||
// ========================================================================
|
||||
|
@ -1350,14 +1350,17 @@ bool ProDOS_FileExtract( const char *path )
|
||||
return false;
|
||||
}
|
||||
|
||||
fprintf( pFileMeta, "kind = 0x%02X\n", pEntry->kind );
|
||||
fprintf( pFileMeta, "date = 0x%04X\n", pEntry->date );
|
||||
fprintf( pFileMeta, "time = 0x%04X\n", pEntry->time );
|
||||
fprintf( pFileMeta, "cver = 0x%02X\n", pEntry->cur_ver );
|
||||
fprintf( pFileMeta, "mver = 0x%02X\n", pEntry->min_ver );
|
||||
fprintf( pFileMeta, "aux = 0x%04X\n", pEntry->aux );
|
||||
fprintf( pFileMeta, "modd = 0x%04X\n", pEntry->mod_date );
|
||||
fprintf( pFileMeta, "modt = 0x%04X\n", pEntry->mod_time );
|
||||
// TODO: Sync these up with <file>._META ProDOS_FileExtract() and getCopyConfig()
|
||||
fprintf( pFileMeta, "access = $%02X\n", pEntry->access );
|
||||
fprintf( pFileMeta, "aux = $%04X\n", pEntry->aux );
|
||||
fprintf( pFileMeta, "type = $%02X\n", pEntry->type );
|
||||
fprintf( pFileMeta, "kind = $%02X\n", pEntry->kind );
|
||||
fprintf( pFileMeta, "date = $%04X\n", pEntry->date );
|
||||
fprintf( pFileMeta, "time = $%04X\n", pEntry->time );
|
||||
fprintf( pFileMeta, "version = $%02X\n", pEntry->cur_ver );
|
||||
fprintf( pFileMeta, "minver = $%02X\n", pEntry->min_ver );
|
||||
fprintf( pFileMeta, "moddate = $%04X\n", pEntry->mod_date );
|
||||
fprintf( pFileMeta, "modtime = $%04X\n", pEntry->mod_time );
|
||||
fclose( pFileMeta );
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user