Implement compiled-in config file handling a little better - now
that there's no filesystem on the boot.flp image we need to prompt for the configuration floppy.
This commit is contained in:
parent
f533d5bfe1
commit
740e9a8981
@ -128,7 +128,7 @@ mediaInitFloppy(Device *dev)
|
||||
msgDebug("Init floppy called for %s distribution.\n", distWanted ? distWanted : "some");
|
||||
if (!distWanted)
|
||||
msgConfirm("Please insert floppy for %s", dev->description);
|
||||
else if (distWanted != (char *)1) /* 1 is kludge for "don't ask!" */
|
||||
else
|
||||
msgConfirm("Please insert floppy containing %s for %s", distWanted, dev->description);
|
||||
|
||||
memset(&dosargs, 0, sizeof dosargs);
|
||||
|
@ -135,7 +135,7 @@ main(int argc, char **argv)
|
||||
extern char *distWanted;
|
||||
|
||||
/* Tell mediaSetFloppy() to try floppy now */
|
||||
distWanted = (char *)1;
|
||||
distWanted = LOAD_CONFIG_FILE;
|
||||
|
||||
/* Try to open the floppy drive if we can do that first */
|
||||
if (DITEM_STATUS(mediaSetFloppy(NULL)) != DITEM_FAILURE && mediaDevice->init(mediaDevice)) {
|
||||
|
@ -135,7 +135,7 @@ main(int argc, char **argv)
|
||||
extern char *distWanted;
|
||||
|
||||
/* Tell mediaSetFloppy() to try floppy now */
|
||||
distWanted = (char *)1;
|
||||
distWanted = LOAD_CONFIG_FILE;
|
||||
|
||||
/* Try to open the floppy drive if we can do that first */
|
||||
if (DITEM_STATUS(mediaSetFloppy(NULL)) != DITEM_FAILURE && mediaDevice->init(mediaDevice)) {
|
||||
|
@ -128,7 +128,7 @@ mediaInitFloppy(Device *dev)
|
||||
msgDebug("Init floppy called for %s distribution.\n", distWanted ? distWanted : "some");
|
||||
if (!distWanted)
|
||||
msgConfirm("Please insert floppy for %s", dev->description);
|
||||
else if (distWanted != (char *)1) /* 1 is kludge for "don't ask!" */
|
||||
else
|
||||
msgConfirm("Please insert floppy containing %s for %s", distWanted, dev->description);
|
||||
|
||||
memset(&dosargs, 0, sizeof dosargs);
|
||||
|
@ -135,7 +135,7 @@ main(int argc, char **argv)
|
||||
extern char *distWanted;
|
||||
|
||||
/* Tell mediaSetFloppy() to try floppy now */
|
||||
distWanted = (char *)1;
|
||||
distWanted = LOAD_CONFIG_FILE;
|
||||
|
||||
/* Try to open the floppy drive if we can do that first */
|
||||
if (DITEM_STATUS(mediaSetFloppy(NULL)) != DITEM_FAILURE && mediaDevice->init(mediaDevice)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user