From 8aaf9266048476bd25e39e2a5c47486ff32d35be Mon Sep 17 00:00:00 2001 From: Michaelangel007 Date: Tue, 7 Nov 2017 08:45:05 -0800 Subject: [PATCH] Remove hard-coded ProDOS index block with DskPutIndexBlock() --- prodos.tools.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/prodos.tools.cpp b/prodos.tools.cpp index b84706e..0a72885 100644 --- a/prodos.tools.cpp +++ b/prodos.tools.cpp @@ -1189,8 +1189,7 @@ bool ProDOS_FileAdd( const char *to_path, const char *from_filename, ProDOS_File { if( iKind == ProDOS_KIND_TREE ) { - gaDsk[ iMasterIndex + iBlock + 0 ] = (iMetaBlock >> 0) & 0xFF; - gaDsk[ iMasterIndex + iBlock + 256 ] = (iMetaBlock >> 8) & 0xFF; + DskPutIndexBlock( iMasterIndex, iBlock, iMetaBlock ); } } @@ -1225,8 +1224,7 @@ bool ProDOS_FileAdd( const char *to_path, const char *from_filename, ProDOS_File // Update single index block if( iIndexBase ) { - gaDsk[ iIndexBase + iBlock + 0 ] = (iDataBlock >> 0) & 0xFF; - gaDsk[ iIndexBase + iBlock + 256 ] = (iDataBlock >> 8) & 0xFF; + DskPutIndexBlock( iIndexBase, iBlock, iDataBlock ); } } else