mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2025-01-28 00:29:46 +00:00
Simply meta file writing
This commit is contained in:
parent
b410ee094b
commit
cc5237de1b
@ -1343,18 +1343,24 @@ bool ProDOS_FileExtract( const char *path )
|
|||||||
|
|
||||||
printf( "Saving meta... %s\n", sAttrib );
|
printf( "Saving meta... %s\n", sAttrib );
|
||||||
FILE *pFileMeta = fopen( sAttrib, "w+b" );
|
FILE *pFileMeta = fopen( sAttrib, "w+b" );
|
||||||
|
|
||||||
|
if( !pFileMeta )
|
||||||
{
|
{
|
||||||
fprintf( pFileMeta, "kind = 0x%02X\n", pEntry->kind );
|
printf( "ERROR: Couldnt' open attribute file for writing: %s\n", sAttrib );
|
||||||
fprintf( pFileMeta, "date = 0x%04X\n", pEntry->date );
|
return false;
|
||||||
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 );
|
|
||||||
fclose( pFileMeta );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 );
|
||||||
|
fclose( pFileMeta );
|
||||||
|
|
||||||
|
|
||||||
int addr = pEntry->inode * PRODOS_BLOCK_SIZE;
|
int addr = pEntry->inode * PRODOS_BLOCK_SIZE;
|
||||||
int size = pEntry->size;
|
int size = pEntry->size;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user