SIMON: Improving startup times
|Reported by:||eriktorbjorn||Owned by:||SF/ender|
|Game:||Simon the Sorcerer 1|
When using MP3-compressed sound, starting a Simon game takes a lot of time, relatively speaking. This patch attempts to fix that, and at least for me the difference can be several seconds.
What it does is to replace the loops that read the entire sound/effects file, in 2 Kb blocks, until it finds the end of the file, with a single seek(0, SEEK_END).
Ticket imported from: #638809. Ticket imported from: patches/234.