1
0
Fork 0

Remove extern global variable from bios_disk.h

This way interface of swapInDisks function is cleaner and we avoid a
warning when comparing (previously) signed swap position with an
unsigned array size or index.

Also, add some documentation to swapInDisks function.
This commit is contained in:
Patryk Obara 2019-12-18 21:34:38 +01:00 committed by Patryk Obara
parent 8f81eb199a
commit c81269eebe
3 changed files with 21 additions and 12 deletions

View file

@ -676,9 +676,7 @@ public:
i++;
}
swapPosition = 0;
swapInDisks();
swapInDisks(0);
if (!imageDiskList[drive - 'A']) {
WriteOut(MSG_Get("PROGRAM_BOOT_UNABLE"), drive);