[hatari-devel] Hatari GEMDOS drive volume name

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hello,

When drive C: is a GEMDOS drive this code fragment does not work as I
expect it:

if(!Fsfirst("C:\*.*", FA_VOLUME)) {
  DTA *dta = Fgetdta();

  if(dta->d_attrib == 0x08) {
    // Unexpected: d_attrib is $00 here, shouldn't it be 0x08?
    // d_fname is "EMULATED.002"
  }
}

If C: is a partition on an image file, d_attrib == 0x08 for the volume name.

IMO also for a GEMDOS drive d_attrib should be 0x08, because there appears
to be a volume name "EMULATED.00x".

Best regards

Uwe



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/