MobyGamer / total-dos-launcher

A system for easily loading and running thousands of DOS programs on vintage hardware
MIT License
109 stars 10 forks source link

Title execution auditing #27

Open MobyGamer opened 7 years ago

MobyGamer commented 7 years ago

TDL is in use at various vintage computing festivals and conventions. To better understand the needs of the public using TDL at these settings, TDL should be able to provide an audit report after the event. Auditing would collect the following information:

(Program activity is not possible to collect reliably, but one possible implementation could involve hooking the system timer 18Hz interrupt to wake up once a minute to check keyboard buffer contents and mouse X/Y location, and if either are changed from the last sample, note it as active. Joystick activity collection is not possible because joystick port reads are done with interrupts disabled, although button presses could be monitored.)

An audit report can then be generated after the session is over, and would display the following:

Note: It is implied that TDL will be in the system's C:\AUTOEXEC.BAT for this to provide meaningful results. Also, if the system date and time are not set properly at every system boot from a battery-backed clock, only the launch counts and activity duration will be accurate.

Implementation: