Simply meta file writing

This commit is contained in:
Michaelangel007 2017-12-11 08:19:33 -08:00
parent b410ee094b
commit cc5237de1b

View File

@ -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;