mirror of
https://github.com/Michaelangel007/apple2_prodos_utils.git
synced 2024-06-10 05:29:29 +00:00
Remove hard-coded ProDOS index block with DskPutIndexBlock()
This commit is contained in:
parent
115677223c
commit
8aaf926604
|
@ -1189,8 +1189,7 @@ bool ProDOS_FileAdd( const char *to_path, const char *from_filename, ProDOS_File
|
||||||
{
|
{
|
||||||
if( iKind == ProDOS_KIND_TREE )
|
if( iKind == ProDOS_KIND_TREE )
|
||||||
{
|
{
|
||||||
gaDsk[ iMasterIndex + iBlock + 0 ] = (iMetaBlock >> 0) & 0xFF;
|
DskPutIndexBlock( iMasterIndex, iBlock, iMetaBlock );
|
||||||
gaDsk[ iMasterIndex + iBlock + 256 ] = (iMetaBlock >> 8) & 0xFF;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1225,8 +1224,7 @@ bool ProDOS_FileAdd( const char *to_path, const char *from_filename, ProDOS_File
|
||||||
// Update single index block
|
// Update single index block
|
||||||
if( iIndexBase )
|
if( iIndexBase )
|
||||||
{
|
{
|
||||||
gaDsk[ iIndexBase + iBlock + 0 ] = (iDataBlock >> 0) & 0xFF;
|
DskPutIndexBlock( iIndexBase, iBlock, iDataBlock );
|
||||||
gaDsk[ iIndexBase + iBlock + 256 ] = (iDataBlock >> 8) & 0xFF;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user