Treat : as seperater (for goto:label)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3771
This commit is contained in:
parent
5062d2f4ad
commit
8749c42829
1 changed files with 6 additions and 5 deletions
|
@ -123,11 +123,12 @@ void DOS_Shell::DoCommand(char * line) {
|
|||
char cmd_buffer[CMD_MAXLINE];
|
||||
char * cmd_write=cmd_buffer;
|
||||
while (*line) {
|
||||
if (*line==32) break;
|
||||
if (*line=='/') break;
|
||||
if (*line=='\t') break;
|
||||
if (*line=='=') break;
|
||||
if ((*line=='.') ||(*line =='\\')) { //allow stuff like cd.. and dir.exe cd\kees
|
||||
if (*line == 32) break;
|
||||
if (*line == '/') break;
|
||||
if (*line == '\t') break;
|
||||
if (*line == '=') break;
|
||||
if (*line == ':') break;
|
||||
if ((*line == '.') ||(*line == '\\')) { //allow stuff like cd.. and dir.exe cd\kees
|
||||
*cmd_write=0;
|
||||
Bit32u cmd_index=0;
|
||||
while (cmd_list[cmd_index].name) {
|
||||
|
|
Loading…
Add table
Reference in a new issue