console_cmds.c
branch0.5
changeset 5483 a0d5f45dbdcf
parent 5462 6d16b7e4f85d
child 5500 636a87c38ec1
equal deleted inserted replaced
5482:cf9c0b5d3bb3 5483:a0d5f45dbdcf
  1397 				IConsoleError("This command/variable is only available to a network server.");
  1397 				IConsoleError("This command/variable is only available to a network server.");
  1398 			}
  1398 			}
  1399 		}
  1399 		}
  1400 	}
  1400 	}
  1401 
  1401 
       
  1402 	return true;
       
  1403 }
       
  1404 
       
  1405 DEF_CONSOLE_CMD(ConListPatches)
       
  1406 {
       
  1407 	if (argc == 0) {
       
  1408 		IConsoleHelp("List patch options. Usage: 'list_patches'");
       
  1409 		return true;
       
  1410 	}
       
  1411 
       
  1412 	if (argc != 1) return false;
       
  1413 
       
  1414 	IConsoleListPatches();
  1402 	return true;
  1415 	return true;
  1403 }
  1416 }
  1404 
  1417 
  1405 DEF_CONSOLE_CMD(ConListDumpVariables)
  1418 DEF_CONSOLE_CMD(ConListDumpVariables)
  1406 {
  1419 {
  1480 	IConsoleCmdRegister("ls",           ConListFiles);
  1493 	IConsoleCmdRegister("ls",           ConListFiles);
  1481 	IConsoleCmdRegister("cd",           ConChangeDirectory);
  1494 	IConsoleCmdRegister("cd",           ConChangeDirectory);
  1482 	IConsoleCmdRegister("pwd",          ConPrintWorkingDirectory);
  1495 	IConsoleCmdRegister("pwd",          ConPrintWorkingDirectory);
  1483 	IConsoleCmdRegister("clear",        ConClearBuffer);
  1496 	IConsoleCmdRegister("clear",        ConClearBuffer);
  1484 	IConsoleCmdRegister("patch",        ConPatch);
  1497 	IConsoleCmdRegister("patch",        ConPatch);
       
  1498 	IConsoleCmdRegister("list_patches", ConListPatches);
  1485 
  1499 
  1486 	IConsoleAliasRegister("dir",      "ls");
  1500 	IConsoleAliasRegister("dir",      "ls");
  1487 	IConsoleAliasRegister("del",      "rm %+");
  1501 	IConsoleAliasRegister("del",      "rm %+");
  1488 	IConsoleAliasRegister("newmap",   "newgame");
  1502 	IConsoleAliasRegister("newmap",   "newgame");
  1489 	IConsoleAliasRegister("new_map",  "newgame");
  1503 	IConsoleAliasRegister("new_map",  "newgame");