Some code I just sent was obviously not correct... I don't know what I was
thinking (I probably didn't think).
This is the problem:
In my config.sys I have:
(snip)
rem files=60
files=50
(snip)
Cfgwiz finds the first one, adds 6 from the buffer (the current line) and
checks what the value is - obviosuly "les=60" isn't >= 50.
Current code:
if (strstr(strupr(buffer),"FILES"))
{
/*
char *files = strstr(buffer,"=")+1;
return atoi(files);
*/
char *files = buffer+6;
return atoi(files);
}
Instead we can (and should IMHO) do like this:
if (!strncmpi(buffer),"FILES", 5))
{
char *files = strstr(buffer,"=")+1;
return atoi(files);
}
But this value should also be read from memory - IIRC QEMM can change it
and a boot-menu can use another value when Arachne is running. I don't know
where this is read from (does anyone on the list know?) Perhaps I should
look in the latest interupt list.
//Bernie
http://bernie.arachne.cz/ DOS programs, Star Wars ...