[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Getting drive names in XaAES



OK, so it is Atari ST standard to store drives as numeric values (as
opposed to other methods)..

On Tue, Dec 8, 2009 at 8:21 PM, Miro Kropacek <miro.kropacek@gmail.com> wrote:
> That means it takes ASCII value of 'a' (0x61) and adds a number to it
> (ranging from zero to N), i.e. you'll get values of ASCII codes for 'a',
> 'b', 'c', ... depending on what current drive number is. Then just adds ':'
> after this character resulting in "a:", "b:" etc strings.
>
> On Tue, Dec 8, 2009 at 10:17 AM, Paul Wratt <paul.wratt@gmail.com> wrote:
>>
>> Can someone tell me why this happens:
>>                        *(info->home_path) = drv + 'a';
>>                        *(info->home_path + 1) = ':';
>>
>> or
>>        defdir[0] = d_getdrv() + 'a';
>>        defdir[1] = ':';
>>
>>
>> And is it "not restricted to XaAES"
>>
>
> --
> MiKRO / Mystic Bytes
> http://mikro.atari.org
>