| name | name of the file to be recorded or replayed, or NULL to stop recording or replaying. |
| mode | 0 - record only keys and mouse buttons (file size ca. 1 kb/sec). |
// Record a demo from the current position
game_save("record",0,SV_ALL-SV_INFO);
wait(1);
sys_record("record.rec",1);
...
game_load("record",0);
wait(1);
sys_replay("record.rec");