branch | gamebalance |
changeset 9908 | 0fa543611bbe |
parent 9895 | 7bd07f43b0e3 |
child 9911 | 0b8b245a2391 |
9907:3b068c3a1c74 | 9908:0fa543611bbe |
---|---|
6 #include "openttd.h" |
6 #include "openttd.h" |
7 #include "console.h" |
7 #include "console.h" |
8 #include "debug.h" |
8 #include "debug.h" |
9 #include "engine.h" |
9 #include "engine.h" |
10 #include "functions.h" |
10 #include "functions.h" |
11 #include "landscape.h" |
|
11 #include "saveload.h" |
12 #include "saveload.h" |
12 #include "string.h" |
13 #include "string.h" |
13 #include "variables.h" |
14 #include "variables.h" |
14 #include "network/network_data.h" |
15 #include "network/network_data.h" |
15 #include "network/network_client.h" |
16 #include "network/network_client.h" |
1411 IConsoleError("This command/variable is only available to a network server."); |
1412 IConsoleError("This command/variable is only available to a network server."); |
1412 } |
1413 } |
1413 } |
1414 } |
1414 } |
1415 } |
1415 |
1416 |
1417 return true; |
|
1418 } |
|
1419 |
|
1420 DEF_CONSOLE_CMD(ConListPatches) |
|
1421 { |
|
1422 if (argc == 0) { |
|
1423 IConsoleHelp("List patch options. Usage: 'list_patches'"); |
|
1424 return true; |
|
1425 } |
|
1426 |
|
1427 if (argc != 1) return false; |
|
1428 |
|
1429 IConsoleListPatches(); |
|
1416 return true; |
1430 return true; |
1417 } |
1431 } |
1418 |
1432 |
1419 DEF_CONSOLE_CMD(ConListDumpVariables) |
1433 DEF_CONSOLE_CMD(ConListDumpVariables) |
1420 { |
1434 { |
1495 IConsoleCmdRegister("ls", ConListFiles); |
1509 IConsoleCmdRegister("ls", ConListFiles); |
1496 IConsoleCmdRegister("cd", ConChangeDirectory); |
1510 IConsoleCmdRegister("cd", ConChangeDirectory); |
1497 IConsoleCmdRegister("pwd", ConPrintWorkingDirectory); |
1511 IConsoleCmdRegister("pwd", ConPrintWorkingDirectory); |
1498 IConsoleCmdRegister("clear", ConClearBuffer); |
1512 IConsoleCmdRegister("clear", ConClearBuffer); |
1499 IConsoleCmdRegister("patch", ConPatch); |
1513 IConsoleCmdRegister("patch", ConPatch); |
1514 IConsoleCmdRegister("list_patches", ConListPatches); |
|
1500 |
1515 |
1501 IConsoleAliasRegister("dir", "ls"); |
1516 IConsoleAliasRegister("dir", "ls"); |
1502 IConsoleAliasRegister("del", "rm %+"); |
1517 IConsoleAliasRegister("del", "rm %+"); |
1503 IConsoleAliasRegister("newmap", "newgame"); |
1518 IConsoleAliasRegister("newmap", "newgame"); |
1504 IConsoleAliasRegister("new_map", "newgame"); |
1519 IConsoleAliasRegister("new_map", "newgame"); |