Hi,

Christoph Reichenbach wrote:

> Hi,
>
> > * GET_DEVICE returns the drive/device on which "input" resides in output
> >   (and a pointer to the terminating NULL in the accumulator)
> > * GET_CURRENT_DEVICE returns the drive/device that contains the CWD
> >   (and a pointer to the terminating NULL in the accumulator)
>
> What do these device strings look like? Do they have a fixed length
> (e.g. two-letter strings containing stuff like "C:"?)

Input could be, for instance, "C:\SIERRA\SQ3", and output would be "C:". I
think we can anything we like in the output buffer, except that there may be
length constraints to take care of. The length is not checked by the DOS
interpreter (perhaps because the output string will only have two letters in
it), but the buffers must be either local or temporary variables. We will have
to work out a limit by experimenting.

>
>
> Is there a length limit to the save game name strings?
>

Not imposed by the kernel, no. The .DIR files created by the DOS interpreter
consist of 16-bit string lengths followed by the string itself - this is
converted to a NULL termination inside the interpreter. If there is a real
limit, it will be handled by the script (the same script is used for all games,
and AFAIK, a normal EditControl is used in the dialog box).

Lars


Reply via email to