Prepare system to mode current drive to sda. Check for problems with rename.(fixes linux rename). Small warning fixes + style changes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3345
This commit is contained in:
parent
b35cfb2e74
commit
92c5771c4d
4 changed files with 62 additions and 46 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: dos.cpp,v 1.116 2009-03-14 16:10:00 c2woody Exp $ */
|
||||
/* $Id: dos.cpp,v 1.117 2009-04-16 12:16:52 qbix79 Exp $ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -397,7 +397,7 @@ static Bitu DOS_21Handler(void) {
|
|||
case 0x1f: /* Get drive parameter block for default drive */
|
||||
case 0x32: /* Get drive parameter block for specific drive */
|
||||
{ /* Officially a dpb should be returned as well. The disk detection part is implemented */
|
||||
Bitu drive=reg_dl;if(!drive || reg_ah==0x1f) drive=dos.current_drive;else drive--;
|
||||
Bitu drive=reg_dl;if(!drive || reg_ah==0x1f) drive = DOS_GetDefaultDrive();else drive--;
|
||||
if(Drives[drive]) {
|
||||
reg_al = 0x00;
|
||||
SegSet16(ds,dos.tables.dpb);
|
||||
|
@ -1126,6 +1126,7 @@ public:
|
|||
DOS_SetupMemory(); /* Setup first MCB */
|
||||
DOS_SetupPrograms();
|
||||
DOS_SetupMisc(); /* Some additional dos interrupts */
|
||||
DOS_SDA(DOS_SDA_SEG,DOS_SDA_OFS).SetDrive(25); /* Else the next call gives a warning. */
|
||||
DOS_SetDefaultDrive(25);
|
||||
|
||||
dos.version.major=5;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue