Move this to DOS init to cover all cases, not just RE-DOS

This commit is contained in:
Wengier 2020-04-29 19:32:35 -04:00 committed by GitHub
parent 21d96a01e1
commit 9e65dd87f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,6 @@
#include "programs.h"
#include "zipfile.h"
#include "regs.h"
#include "../dos/drives.h"
#ifndef WIN32
# include <stdlib.h>
# include <unistd.h>
@ -1594,9 +1593,6 @@ public:
WriteOut("Restarts the kernel of DOSBox-X's emulated DOS.\n\nRE-DOS\n");
return;
}
for (int i=0; i < DOS_DRIVES; i++)
if (Drives[i])
DriveManager::UnmountDrive(i);
throw int(6);
}
};