made mount more flexible
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@801
This commit is contained in:
parent
9ac71b7420
commit
60f6a77081
1 changed files with 7 additions and 8 deletions
|
@ -47,14 +47,8 @@ public:
|
|||
}
|
||||
return;
|
||||
}
|
||||
std::string type="dir";
|
||||
|
||||
// get the drive letter
|
||||
cmd->FindCommand(1,temp_line);
|
||||
if (temp_line.size()>1) goto showusage;
|
||||
drive=toupper(temp_line[0]);
|
||||
if (!isalpha(drive)) goto showusage;
|
||||
|
||||
std::string type="dir";
|
||||
cmd->FindString("-t",type,true);
|
||||
if (type=="floppy" || type=="dir" || type=="cdrom") {
|
||||
Bit16u sizes[4];
|
||||
|
@ -84,7 +78,12 @@ public:
|
|||
scan++;
|
||||
}
|
||||
number[index]=0;sizes[count++]=atoi(number);
|
||||
|
||||
|
||||
// get the drive letter
|
||||
cmd->FindCommand(1,temp_line);
|
||||
if ((temp_line.size() > 2) || ((temp_line.size()>1) && (temp_line[1]!=':'))) goto showusage;
|
||||
drive=toupper(temp_line[0]);
|
||||
if (!isalpha(drive)) goto showusage;
|
||||
|
||||
if (!cmd->FindCommand(2,temp_line)) goto showusage;
|
||||
if (!temp_line.size()) goto showusage;
|
||||
|
|
Loading…
Add table
Reference in a new issue