2 small patches from h-a-l-9000. Joystick equimentbit. Don't change drive when there none mounted.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2641
This commit is contained in:
parent
21ae8be729
commit
b950bf43ba
2 changed files with 5 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: dos_files.cpp,v 1.73 2006-04-23 14:20:57 c2woody Exp $ */
|
||||
/* $Id: dos_files.cpp,v 1.74 2006-05-28 09:40:42 qbix79 Exp $ */
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -49,7 +49,7 @@ Bit8u DOS_GetDefaultDrive(void) {
|
|||
}
|
||||
|
||||
void DOS_SetDefaultDrive(Bit8u drive) {
|
||||
if (drive<=DOS_DRIVES) dos.current_drive=drive;
|
||||
if (drive<=DOS_DRIVES && Drives[drive]) dos.current_drive = drive;
|
||||
}
|
||||
|
||||
bool DOS_MakeName(char * name,char * fullname,Bit8u * drive) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue