always allow changing to floppy drives (fixes Sokoban)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2672
This commit is contained in:
parent
58561958ff
commit
72c6d40dbc
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: dos_files.cpp,v 1.76 2006-06-30 20:04:21 qbix79 Exp $ */
|
||||
/* $Id: dos_files.cpp,v 1.77 2006-07-18 15:31:29 c2woody Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -49,7 +49,7 @@ Bit8u DOS_GetDefaultDrive(void) {
|
|||
}
|
||||
|
||||
void DOS_SetDefaultDrive(Bit8u drive) {
|
||||
if (drive<=DOS_DRIVES && Drives[drive]) dos.current_drive = drive;
|
||||
if (drive<=DOS_DRIVES && ((drive<2) || Drives[drive])) dos.current_drive = drive;
|
||||
}
|
||||
|
||||
bool DOS_MakeName(char * name,char * fullname,Bit8u * drive) {
|
||||
|
|
Loading…
Add table
Reference in a new issue