| Line 294... |
Line 294... |
| 294 |
void ConsoleCommandInitialize () {
|
294 |
void ConsoleCommandInitialize () {
|
| 295 |
DETOUR_INIT;
|
295 |
DETOUR_INIT;
|
| 296 |
DETOUR_ATTACH(ConsoleCommandDestroyPtr,ConsoleCommandDestroy);
|
296 |
DETOUR_ATTACH(ConsoleCommandDestroyPtr,ConsoleCommandDestroy);
|
| 297 |
DETOUR_COMMIT;
|
297 |
DETOUR_COMMIT;
|
| 298 |
|
298 |
|
| - |
|
299 |
// Unregister the version command and replace it by our own
|
| 299 |
ConsoleCommandUnregister("ver");
|
300 |
ConsoleCommandUnregister("ver");
|
| 300 |
ConsoleCommandRegister("ver",ConsoleCommand_Ver,DEFAULT,NOHELP);
|
301 |
ConsoleCommandRegister("ver",ConsoleCommand_Ver,DEFAULT,NOHELP);
|
| - |
|
302 |
// Register other console commands
|
| 301 |
ConsoleCommandRegister("new",ConsoleCommand_CreateExec,CONSOLE,"[File Name] starts recording a new script");
|
303 |
ConsoleCommandRegister("new",ConsoleCommand_CreateExec,CONSOLE,"[File Name] starts recording a new script");
|
| 302 |
ConsoleCommandRegister("run",ConsoleCommand_RunExec,CONSOLE,"[File Name] Runs a wtf file from the WTF folder");
|
304 |
ConsoleCommandRegister("run",ConsoleCommand_RunExec,CONSOLE,"[File Name] Runs a wtf file from the WTF folder");
|
| 303 |
ConsoleCommandRegister("end",ConsoleCommand_CloseExec,CONSOLE,"Stops recording script");
|
305 |
ConsoleCommandRegister("end",ConsoleCommand_CloseExec,CONSOLE,"Stops recording script");
|
| 304 |
}
|
306 |
}
|
| 305 |
|
307 |
|