1320 // debugging variables and functions |
1320 // debugging variables and functions |
1321 extern bool _stdlib_con_developer; /* XXX extern in .c */ |
1321 extern bool _stdlib_con_developer; /* XXX extern in .c */ |
1322 |
1322 |
1323 IConsoleVarRegister("con_developer", &_stdlib_con_developer, ICONSOLE_VAR_BOOLEAN, "Enable/disable console debugging information (internal)"); |
1323 IConsoleVarRegister("con_developer", &_stdlib_con_developer, ICONSOLE_VAR_BOOLEAN, "Enable/disable console debugging information (internal)"); |
1324 IConsoleCmdRegister("resettile", ConResetTile); |
1324 IConsoleCmdRegister("resettile", ConResetTile); |
|
1325 IConsoleCmdRegister("stopall", ConStopAllVehicles); |
1325 IConsoleAliasRegister("dbg_echo", "echo %A; echo %B"); |
1326 IConsoleAliasRegister("dbg_echo", "echo %A; echo %B"); |
1326 IConsoleAliasRegister("dbg_echo2", "echo %!"); |
1327 IConsoleAliasRegister("dbg_echo2", "echo %!"); |
1327 } |
1328 } |
1328 #endif |
1329 #endif |
1329 |
1330 |
1363 IConsoleCmdRegister("save", ConSave); |
1364 IConsoleCmdRegister("save", ConSave); |
1364 IConsoleCmdRegister("ls", ConListFiles); |
1365 IConsoleCmdRegister("ls", ConListFiles); |
1365 IConsoleCmdRegister("cd", ConChangeDirectory); |
1366 IConsoleCmdRegister("cd", ConChangeDirectory); |
1366 IConsoleCmdRegister("pwd", ConPrintWorkingDirectory); |
1367 IConsoleCmdRegister("pwd", ConPrintWorkingDirectory); |
1367 IConsoleCmdRegister("clear", ConClearBuffer); |
1368 IConsoleCmdRegister("clear", ConClearBuffer); |
1368 IConsoleCmdRegister("stopall", ConStopAllVehicles); |
|
1369 |
1369 |
1370 IConsoleAliasRegister("dir", "ls"); |
1370 IConsoleAliasRegister("dir", "ls"); |
1371 IConsoleAliasRegister("del", "rm %+"); |
1371 IConsoleAliasRegister("del", "rm %+"); |
1372 IConsoleAliasRegister("newmap", "newgame"); |
1372 IConsoleAliasRegister("newmap", "newgame"); |
1373 IConsoleAliasRegister("new_map", "newgame"); |
1373 IConsoleAliasRegister("new_map", "newgame"); |
1377 IConsoleVarRegister("developer", &_stdlib_developer, ICONSOLE_VAR_BYTE, "Redirect debugging output from the console/command line to the ingame console (value 2). Default value: 1"); |
1377 IConsoleVarRegister("developer", &_stdlib_developer, ICONSOLE_VAR_BYTE, "Redirect debugging output from the console/command line to the ingame console (value 2). Default value: 1"); |
1378 |
1378 |
1379 /* networking variables and functions */ |
1379 /* networking variables and functions */ |
1380 #ifdef ENABLE_NETWORK |
1380 #ifdef ENABLE_NETWORK |
1381 /* Network hooks; only active in network */ |
1381 /* Network hooks; only active in network */ |
1382 IConsoleCmdHookAdd ("stopall", ICONSOLE_HOOK_ACCESS, ConHookNoNetwork); |
|
1383 IConsoleCmdHookAdd ("resetengines", ICONSOLE_HOOK_ACCESS, ConHookNoNetwork); |
1382 IConsoleCmdHookAdd ("resetengines", ICONSOLE_HOOK_ACCESS, ConHookNoNetwork); |
1384 |
1383 |
1385 /*** Networking commands ***/ |
1384 /*** Networking commands ***/ |
1386 IConsoleCmdRegister("say", ConSay); |
1385 IConsoleCmdRegister("say", ConSay); |
1387 IConsoleCmdHookAdd("say", ICONSOLE_HOOK_ACCESS, ConHookNeedNetwork); |
1386 IConsoleCmdHookAdd("say", ICONSOLE_HOOK_ACCESS, ConHookNeedNetwork); |