|Detecting corrupt race files
||Sat, 28 July 2012 22:50 |
||While it's possible to check the file headers of a race file with starstat, that doesn't appear to detect when a race file is corrupt because someone has triggered the bug where you create the race file, edited it, and then saved it with a shorter name. I presume that's because the race name is deeper in the race file. |
I've been trying to programmatically detect these files either when a game is created or by "touching" it with stars, and am having a really hard time of it.
Creating games from a .def file and the command line doesn't appear to support the -l extension. I've got Logging=1 in [Misc] but it still doesn't appear to log the game creation, so I can't look at the log file and see it fail.
Right now I'm kicking off game creation as a separate thread, waiting a couple of seconds, and then seeing if the .hst file has appears. Kludgy. I'd like to be able to see it at the time the file is received. Any other ideas?
Report message to a moderator