mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2024-12-27 21:30:26 +00:00
Simply meta file writing
This commit is contained in:
parent
b410ee094b
commit
cc5237de1b
@ -1343,7 +1343,13 @@ bool ProDOS_FileExtract( const char *path )
|
||||
|
||||
printf( "Saving meta... %s\n", sAttrib );
|
||||
FILE *pFileMeta = fopen( sAttrib, "w+b" );
|
||||
|
||||
if( !pFileMeta )
|
||||
{
|
||||
printf( "ERROR: Couldnt' open attribute file for writing: %s\n", sAttrib );
|
||||
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 );
|
||||
@ -1353,7 +1359,7 @@ bool ProDOS_FileExtract( const char *path )
|
||||
fprintf( pFileMeta, "modd = 0x%04X\n", pEntry->mod_date );
|
||||
fprintf( pFileMeta, "modt = 0x%04X\n", pEntry->mod_time );
|
||||
fclose( pFileMeta );
|
||||
}
|
||||
|
||||
|
||||
int addr = pEntry->inode * PRODOS_BLOCK_SIZE;
|
||||
int size = pEntry->size;
|
||||
|
Loading…
Reference in New Issue
Block a user