Looks good to me. This kind of complex state checking just isn't going to be pretty no matter what you do, but good use of clear variable names.
I was thinking about this problem and another option is to hook into the palette switch commands in color-patched games. The way the color patch works, games have the option to send out a palette change command when the ROM is about to play a certain video or show a certain frame, which is exactly the kind of notification you'd want to trigger PUP videos.
Of course, this would have been moot in this case since Tron doesn't have a color patch available yet. But might be something we could look into if you were doing a video mod for AC/DC or Metallica or something like that.




Top

Contributor








are all trademarks of VPFORUMS.