Index: libsrc/cbm/cbm_dir.c =================================================================== --- libsrc/cbm/cbm_dir.c (Revision 4974) +++ libsrc/cbm/cbm_dir.c (Arbeitskopie) @@ -34,15 +34,13 @@ return status; } - - unsigned char __fastcall__ cbm_readdir (unsigned char lfn, register struct cbm_dirent* l_dirent) { unsigned char byte, i; unsigned char rv; unsigned char is_header; static const unsigned char types[] = { - CBM_T_OTHER, CBM_T_OTHER, CBM_T_CBM, CBM_T_DIR, /* a b c d */ + CBM_T_OTHER, CBM_T_OTHER, CBM_T_CBM, CBM_T_DEL, /* a b c d */ CBM_T_OTHER, CBM_T_OTHER, CBM_T_OTHER, CBM_T_OTHER, /* e f g h */ CBM_T_OTHER, CBM_T_OTHER, CBM_T_OTHER, CBM_T_OTHER, /* i j k l */ CBM_T_OTHER, CBM_T_OTHER, CBM_T_OTHER, CBM_T_PRG, /* m n o p */ @@ -120,8 +118,10 @@ l_dirent->type = CBM_T_OTHER; } + if ((cbm_k_basin() == 'i') && (l_dirent->type == CBM_T_DEL)) { + l_dirent->type = CBM_T_DIR; + } cbm_k_basin(); - cbm_k_basin(); byte = cbm_k_basin(); this will fix the problem that DEL files would appear as type DIR, which is quite annoying at best =P -- http://www.hitmen-console.org http://magicdisk.untergrund.net http://www.pokefinder.org http://ftp.pokefinder.org Chilli ohne Ratten ist wie Döner ohne Sperma ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Apr 7 01:58:25 2011
This archive was generated by hypermail 2.1.8 : 2011-04-07 01:58:29 CEST